79173756

Date: 2024-11-09 21:48:22
Score: 1.5
Natty:
Report link

Pls try

    Set para = curRow.Range.Paragraphs(curRow.Range.Paragraphs.Count - 1)
    para.Range.ListFormat.RemoveNumbers
    para.Range.Characters.Last.Previous.Delete  ' ** add ** '

Microsoft documentation:

Characters.Last property (Word)

Please share your table layout with sample text if it doesn't work on your file.

enter image description here

Reasons:
  • RegEx Blacklisted phrase (2.5): Please share your
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • High reputation (-2):
Posted by: taller

79173748

Date: 2024-11-09 21:42:21
Score: 3
Natty:
Report link

Here is a link to the unity documentation about this. Hope it helps. Upgrade custom shaders for URP compatibility

Reasons:
  • Whitelisted phrase (-1): Hope it helps
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: a Duck

79173747

Date: 2024-11-09 21:42:21
Score: 1.5
Natty:
Report link

The problem that you encounter maybe it derives from the projection of your geodataframe. The explore() method uses the crs EPSG:4327

First you can check your crs(Coordinate Reference System) by using:

Then change your crs of your data frame to EPSG:4326 by:

Finally try the explore() method again.

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

79173742

Date: 2024-11-09 21:38:20
Score: 1.5
Natty:
Report link

EC2 doesn't have a permanent DNS hostname independent of their IP address by default. but there's some work around.

1 - you can get yourself an Elastic IP address and associate it with your EC2 instance, then the DNS name will remain tied to this static address.

2 - you can also place an ALB in front of the EC2, and then the ALB will always have a fixed DNS name, that doesn't change, regardless of the underlying IP addresses or status, and can provide you with much scalability and elasticity.

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

79173740

Date: 2024-11-09 21:35:20
Score: 2.5
Natty:
Report link

clickjacking testifram ifram{position:absolute;top: 0; left: 0; width: 100%; height:100%; opacity: 0. /make ifram almost invisible */z-index: 10:} .cover {position: absolute; top: 0; left: 0; width: 100%; height: 100; z-index: 5;} click here to proceed

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

79173737

Date: 2024-11-09 21:32:19
Score: 1
Natty:
Report link

This happened to me after a git commit fail, I just created a new flutter project and copy pasted the lib folder, and it worked for me

Reasons:
  • Whitelisted phrase (-1): it worked
  • Whitelisted phrase (-1): worked for me
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Chathura Dilshan Udawaththa

79173736

Date: 2024-11-09 21:31:19
Score: 2
Natty:
Report link

Im also encountering this issue, and i'm trying to mess with the android xml files. it seems this is an Xiaomi-only issue, and unfortunatly i havent yet found a fix for my device (Poco F5).

This thread gives some more insight :) Android 12+ splash screen background color is ignored in dark mode

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

79173718

Date: 2024-11-09 21:16:13
Score: 6.5 🚩
Natty:
Report link

Same error but not find any answer :(

Reasons:
  • Blacklisted phrase (1): :(
  • RegEx Blacklisted phrase (1): Same error
  • Low length (2):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Qasdikl

79173708

Date: 2024-11-09 21:10:12
Score: 3.5
Natty:
Report link

There is an open source tool called Mirth Migrator that indicates which channels and also which other code templates are using a function defined in a code template.

You can find it on GitHub

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

79173697

Date: 2024-11-09 21:03:11
Score: 1
Natty:
Report link

I would suggest nameisok package. Currently in addition to pypi repository check as @Afternoon's package checks, it also checks for existing package names in GoogleBigQuery database.

As @user66081 suggested it checks for similarity and provides a warning.

pip install nameisok

from command line / terminal

nameisok myawesomePackageName

or for multiple names,

nameisok pandas,example,numpy,myawesomePackageName

https://pypi.org/project/nameisok/

Reasons:
  • Has code block (-0.5):
  • User mentioned (1): @Afternoon's
  • User mentioned (0): @user66081
  • Low reputation (0.5):
Posted by: Sermet Pekin

79173696

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

enter image description here

as you can see there, it's mentioned that the Application Load Balancer (ALB) will import the Certificate Revocation List (CRL) from S3 once and perform all CRL checks locally. This means:

• No repeated fetching from S3: The ALB doesn’t continuously retrieve the CRL from S3, avoiding repeated latency and associated S3 access costs.

• No latency impact during client authentication: Since the ALB performs CRL checks locally, there is no added latency during the mTLS handshake process.

https://aws.amazon.com/blogs/networking-and-content-delivery/introducing-mtls-for-application-load-balancer/

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

79173693

Date: 2024-11-09 21:00:10
Score: 4
Natty:
Report link

I get this error if I have a parquet file saved with engine='fastparquet', but I have not set the engine to fastparqet when trying to load it.

Reasons:
  • RegEx Blacklisted phrase (1): I get this error
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: nanopete

79173691

Date: 2024-11-09 20:59:09
Score: 5
Natty: 4
Report link

I was wondering if you managed to find a solution? I'm struggling with the same "germline annotation ... could not be found" problem, except on linux computers. None of the "solutions" I found online helped, which is why I'm asking.

Reasons:
  • Blacklisted phrase (2): was wondering
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: user28216352

79173689

Date: 2024-11-09 20:58:09
Score: 1.5
Natty:
Report link

Actually, these days, nobody really cares much about your GitHub profile—unless you’ve contributed to some really popular open-source repositories.

It’s mainly for you: to work on projects, learn new things, save your work, and maybe use it as a reminder when you need to recall how you solved a similar issue in one of your projects.

And that’s pretty much it!

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

79173677

Date: 2024-11-09 20:52:08
Score: 4
Natty:
Report link

It was simple as holding on the window and dragging to the right

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

79173673

Date: 2024-11-09 20:49:05
Score: 8 🚩
Natty: 5
Report link

Same...I'm in the same struggle. Did you find a solution?

I have found these two resources and so far i've been unsuccessful but it's there, in the code...anyone else have success with this yet?

https://community.openai.com/t/upload-image-to-assistant-via-api/801717/6

https://geoligard.com/using-laravel-to-interact-with-openai-s-assistants-api-with-vision

Reasons:
  • RegEx Blacklisted phrase (3): Did you find a solution
  • Probably link only (1):
  • Low length (0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Stephen McDermott

79173669

Date: 2024-11-09 20:47:04
Score: 0.5
Natty:
Report link

The issue clearly is in line

COPY . .

which it tries to copy the local node_modules to the container node_modules. you may explicitly give the names of files to copy, or to ignore a node_modules folder in any subdirectory, the syntax should be:

**/node_modules
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: ha36d

79173668

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

Algorithm for checking if a string was built from a list of substrings Here's a solution. I really want to know if some IO platforms have this algorithm problem. It seems really classic.

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

79173663

Date: 2024-11-09 20:45:03
Score: 5.5
Natty:
Report link

I want to use a requested url.i want to follow the steps before the 15th of November 2024.the URL is not giving me the access to complete the steps

Reasons:
  • RegEx Blacklisted phrase (1): I want
  • RegEx Blacklisted phrase (1): i want
  • Low length (1):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Itumeleng

79173659

Date: 2024-11-09 20:44:03
Score: 3
Natty:
Report link

I have seen this solution being able able to decode a Swift Message. You can customize it as well since it is a straight forward solution. Loboid Swift Repo

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

79173657

Date: 2024-11-09 20:41:02
Score: 5.5
Natty: 5
Report link

have you found a solution for this problem because I also have this problem with my site and I haven't seen anyone mention this issue anywhere else.

Reasons:
  • RegEx Blacklisted phrase (2.5): have you found a solution for this problem because I also have this problem with my site and I haven
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: rezesmal

79173650

Date: 2024-11-09 20:35:00
Score: 0.5
Natty:
Report link

But this does not work on MacOs 13, 14 and 15:

import os
cmd = 'open -a KeyboardViewer'
os.system(cmd)

I had to use the following apple script can do this:

tell application "System Settings"
    activate
end tell

do shell script "open 'x-apple.systempreferences:com.apple.preference.universalaccess?Keyboard'"

set endDate to (current date) + 5.0
repeat
    try
        tell application "System Events"
            click checkbox 1 of group 3 of scroll area 1 of group 1 of group 2 of splitter group 1 of group 1 of window "Keyboard" of application process "System Settings"
        end tell
        exit repeat
    on error errorMessage
        if ((current date) > endDate) then
            error errorMessage
        end if
    end try
end repeat

tell application "System Settings"
    quit
end tell

I wonder if there is an easier way to do this. I would be too much grateful for any help!

Reasons:
  • Blacklisted phrase (1): any help
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Rida Shamasneh

79173646

Date: 2024-11-09 20:31:59
Score: 1.5
Natty:
Report link

Use this instead

For uploading on test.pypi.org:

twine upload --repository testpypi dist/*

For uploading pypi:

twine upload --repository pypi dist/*

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

79173615

Date: 2024-11-09 20:15:56
Score: 0.5
Natty:
Report link
=IF(ROW() - 21 <= $L$35, 0, INDEX($J$22:$J$1000, ROW() - $L$35 - 21))
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • High reputation (-1):
Posted by: Michal

79173612

Date: 2024-11-09 20:14:56
Score: 2
Natty:
Report link

as @SteffenUllrich pointed out, before checking errno we must make sure that recvfrom has a bad return value.

int rv = recvfrom(..);
if (rv < 0 && errno == EWOULDBLOCK) { ... }

silly mistake, my bad.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • User mentioned (1): @SteffenUllrich
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: ugo_capeto

79173600

Date: 2024-11-09 20:07:55
Score: 3
Natty:
Report link

Writing here as I am not able to comment on SO.

Have you tried replacing jira URL with just the base URL

jira_url="https://cloud_name_here.atlassian.net"

Thanks

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (1): I am not able to
  • Blacklisted phrase (1): to comment
  • Whitelisted phrase (-1): Have you tried
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Varun

79173581

Date: 2024-11-09 19:57:53
Score: 3.5
Natty:
Report link

Since your question is lacking context, I'll suggest isolating the statements and log the values. You can start by asking the following questions:

  1. What's the value of $result->salePaymentRequestResult->token at that point of code?
  2. What happens when you assign a static string to $cart->transaction_id? For example: $cart->transaction_id = 'test_token';
  3. Is there any mutator defined for transaction_id attribute? Defining a Mutator
  4. Is there any observer defined for the model? Observers
Reasons:
  • Blacklisted phrase (1): Is there any
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Araf Farayez

79173574

Date: 2024-11-09 19:52:52
Score: 2
Natty:
Report link

In vue js you can use this 'vuedef' command for auto generate

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

79173570

Date: 2024-11-09 19:50:51
Score: 4
Natty: 5
Report link

Woe, that this was not answered. we suffer together.

#4 of this thread did not work. This is my only contribution.

Reasons:
  • Blacklisted phrase (1): did not work
  • Low length (1):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: WantMyGUI

79173565

Date: 2024-11-09 19:47:48
Score: 6.5 🚩
Natty: 4
Report link

Dera team Hope you all free some issues with my account and I want to change my account name martuza 1234 please solve this issue as soon as my real name Murtaza khan Thanks Regards Murtaza khan

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (1): Regards
  • RegEx Blacklisted phrase (1): I want
  • RegEx Blacklisted phrase (1): I want to change my account name martuza 1234 please
  • Contains signature (1):
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Murtaza Khan

79173555

Date: 2024-11-09 19:39:46
Score: 2.5
Natty:
Report link

You can also use the OpenGL rendering option which utilized the GPU rather than the CPU. You can also open an interactive window to test code before adding it to your final code product. Some behavior might be different from the default Cairo rendering option. See aquabeam's description for more information.

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

79173553

Date: 2024-11-09 19:36:45
Score: 4
Natty: 3
Report link

i love your code and i .and i create flipsita websitethat is a coin flip simulator based on your code idea

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

79173546

Date: 2024-11-09 19:31:44
Score: 0.5
Natty:
Report link

As mentioned in the comments, it is difficult to follow the logic behind the OP's approach, as it doesn't offer additional advantages nor simplify things in any way that I can tell.

Since @Sweeper provided the solution for fixing the drag gesture (incorporated with some minor changes in the example below), here's how the same functionality could be achieved in a more SwiftUI way and more along the lines of what I believe @Sweeper was suggesting in earlier comments.

Some additional notes:

Here's the full code:

import SwiftUI

struct StarDragGesture: View {
    
    //State values
    @State private var points: [CustomPoint] = [CustomPoint(x: 100, y: 100), CustomPoint(x: 200, y: 200, size: CGSize(width: 50, height: 50)), CustomPoint(x: 300, y: 100)]
    
    //Body
    var body: some View {
        ZStack {
            
            //Background color
            Color.blue
                .ignoresSafeArea()
            
            //Display a star for every point in the points array, at the specified position
            ForEach($points) { $point in
                StarView(position: $point)
            }
            
            //Button for checking the updated star positions in the console
            Button {
                print("-----")
                for (index, point) in points.enumerated() {
                    print("Point \(index + 1) - X: \(point.x), Y: \(point.y)")
                }
            } label: {
                Text("Check positions")
                    .foregroundStyle(.blue)
            }
            .buttonStyle(.borderedProminent)
            .tint(.white)
            
        }
        
    }
}

struct StarView: View {
    
    //Parameters
    @Binding var position: CustomPoint
    
    //State values
    @State private var lastTranslation: CGSize = .zero
    @State private var initialPosition: CustomPoint?
    
    //Body
    var body: some View {
        
        StarShape(points: 5, innerRatio: 0.4)
            .fill(Color.white)
            .shadow(radius: 5)
            .frame(width: position.size.width, height: position.size.height)
            .position(position.coordinates)
        
            //Reset star position on double tab
            .onTapGesture(count: 2) {
                if let initialPosition {
                    position = initialPosition
                }
            }
            .gesture(dragGesture)
        
            //Optional - Capture initial position for resetting
            .onAppear {
                initialPosition = position
            }
        
    }
    
    private var dragGesture: some Gesture {
        
        DragGesture(minimumDistance: 0)
            .onChanged { value in
                updatePosition(value.translation)
                lastTranslation = value.translation
            }
            .onEnded { value in
                updatePosition(value.translation)
                lastTranslation = .zero
            }
    }
    
    //Helper function for updating the position based on gesture translation
    private func updatePosition(_ translation: CGSize ) {
        position.x += translation.width - lastTranslation.width
        position.y += translation.height - lastTranslation.height
    }
    
}

struct StarShape: Shape {
    var points: Int = 5
    var innerRatio: CGFloat = 0.5  // Adjusts the depth of the star's inner points
    
    func path(in rect: CGRect) -> Path {
        guard points >= 2 else { return Path() }
        
        let center = CGPoint(x: rect.width / 2, y: rect.height / 2)
        let angle = 2 * .pi / CGFloat(points)
        let radius = min(rect.width, rect.height) / 2
        
        var path = Path()
        let startAngle = -CGFloat.pi / 2
        
        for i in 0..<points * 2 {
            let rotationAngle = startAngle + angle * CGFloat(i) / 2
            let pointRadius = i % 2 == 0 ? radius : radius * innerRatio
            let x = center.x + pointRadius * cos(rotationAngle)
            let y = center.y + pointRadius * sin(rotationAngle)
            
            if i == 0 {
                path.move(to: CGPoint(x: x, y: y))
            } else {
                path.addLine(to: CGPoint(x: x, y: y))
            }
        }
        
        path.closeSubpath()
        return path
    }
}

struct CustomPoint: Identifiable {
    
    let id: UUID = UUID()
    var x: CGFloat
    var y: CGFloat
    
    //Computed properties
    var coordinates: CGPoint {
        CGPoint(x: x, y: y)
    }
    
    //Optional property for possibly creating stars of various sizes
    var size: CGSize = CGSize(width: 100, height: 100)
}

#Preview {
    StarDragGesture()
}

Give this a try and let me know if it makes sense or if it still makes things difficult for your use case.

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @Sweeper
  • User mentioned (0): @Sweeper
  • Low reputation (0.5):
Posted by: Andrei G.

79173533

Date: 2024-11-09 19:26:43
Score: 2.5
Natty:
Report link

Am still getting the error after implementing this here is the error i got page: '/api/question' } 11 | } 12 |

13 | const openai = newOpenAI({ | ^ 14 | apiKey: process.env.OpenAI_API_KEY, 15 | }) 16 | ✓ Compiled /_error in 424ms (1044 modules) POST /api/question 500 in 935ms

Reasons:
  • RegEx Blacklisted phrase (1): Am still getting the error
  • No code block (0.5):
  • Low reputation (1):
Posted by: Itoro Mfon

79173530

Date: 2024-11-09 19:21:42
Score: 3
Natty:
Report link

The important thing here is to include the typescript source code inside the library, and also configuring launch.json to resolve source maps location correctly

Here i have a video explaining the changes and debugging typescript code inside node_modules

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

Reasons:
  • Blacklisted phrase (1): youtube.com
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: neovimdev

79173526

Date: 2024-11-09 19:20:41
Score: 3
Natty:
Report link

Try my aso.dev - we support translating by Google, DeepL, GPT, Claude

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

79173522

Date: 2024-11-09 19:18:41
Score: 1.5
Natty:
Report link

Just use modifier for menu

.colorScheme(.dark)
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Levchenko

79173521

Date: 2024-11-09 19:17:41
Score: 1.5
Natty:
Report link

Found solution in here:

pip uninstall kivy-ios
pip install git+https://github.com/kivy/kivy-ios
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: 320V

79173518

Date: 2024-11-09 19:16:40
Score: 4.5
Natty:
Report link

i have another problem with the exportOptions.plist.

Encountered error while creating the IPA: error: exportArchive exportOptionsPlist error for key "method" expected one {} but found app-store-connect

Where did you find your file ? I was searching all directorys in my flutter app but there is no exportOptionsPlist file anywhere.

Reasons:
  • RegEx Blacklisted phrase (3): did you find your
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: Woogielicious

79173512

Date: 2024-11-09 19:13:39
Score: 0.5
Natty:
Report link

I'm thinking whether it's worth trying to implement inter prediction if I have RAM limitations.

I don't know much about FPGA, but I don't think you should worry about RAM. Less than 3MB might suffice.

Do I understand correctly that the buffer size will be equal to the resolution multiplied bits on pixel, given that I am working with YUV 4:2:0 fotmat? Or do I only need the Y brightness component?

I'm not sure to have understand this correctly. Using YUV 4:2:0 chroma sampling, the buffer has a size of :

width * height * 3 / 2

And is there any way to use an already compressed picture that has already passed through entropy encoding(cavlc or cabac) for inter-frame prediction? Otherwise, if you use the picture after the reconstruction conversion, it weighs the same as the original, although its quality is already lower. This fact requires a lot of RAM, which is not enough in FPGA.

As far as I know, it's not really possible.

It's called transcoding, but it's usually done by decoding and re-encoding.

I have not found any examples in the open source that would not use RAM less than the full size of the uncompressed picture. For YUV at 720p, this is 1350 KB.

This is correct ;

720×1280×3÷2 = 1382400

If you encounter a genuine issue regarding memory. You may use an SD card (here's a similar question). Access time would be much slower, but it it'd solve your problem.

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

79173510

Date: 2024-11-09 19:12:39
Score: 1.5
Natty:
Report link

I don't know about fastlane price points, but in my product aso.dev you can use templates for pricing.

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

79173507

Date: 2024-11-09 19:11:39
Score: 1
Natty:
Report link

let's breakdown why this is happening:

1 - Frontend and backend interaction via Browser: The react app is built and served from the web server (EC2 for your case). However, once it's loaded into the user's browser, it runs client-side on the user's machine. So when the react app makes a request. that HTTP request originates from the user's browser not from the server where the react app was hosted.

2 - Why Backend can't be in private subnet alone: If the backend is in private subnet, it has no direct exposure to the internet . which means: only resources in the same VPC can communicate with it, that's why the user browser will have no access to it. So, the Solution for this Public facing ALB with backend in the Private Subnet.
• Deploy a public-facing Application Load Balancer (ALB).

• The ALB sits in a public subnet and forwards requests to the Flask API in the private subnet.

• The React app in the browser can now send requests to the ALB’s public DNS.

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

79173501

Date: 2024-11-09 19:07:37
Score: 0.5
Natty:
Report link

I have this issue too. After some search, I find that it's probably due to the type of the card. Pre-paid card is easily denied by such services.

A possible solution is: use Mastercard instead of Visa. Reason: Visa has a so-called "Decision Manager" algorithm that decides whether to pass your verification or not (fraud or not). And this algorithm is owned by Visa.

Reasons:
  • Whitelisted phrase (-1): solution is
  • No code block (0.5):
  • Low reputation (1):
Posted by: AIIA

79173497

Date: 2024-11-09 19:05:37
Score: 4
Natty:
Report link

thnksssss overflow very good details

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

79173490

Date: 2024-11-09 19:04:36
Score: 1
Natty:
Report link

If you get this error after deploying your application on Vercel, trying to retrieve the data but it turns out error 504(Default timeout). Do this:

For me I was using #MONGODB, #nextjsAPI, #Vercel for deployment when facing that error. I dont't know if it can work for others

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

79173484

Date: 2024-11-09 19:00:36
Score: 1
Natty:
Report link

I was browsing the web and encountered this repo which is 3yrs old, but it looks like a real answer to our question:

Decode Whatsapp .enc files using mediaKey

The idea here is to create a n8n Node that can do the same thing.

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

79173479

Date: 2024-11-09 18:58:33
Score: 7 🚩
Natty:
Report link

I have the same problem. It's make me so angry

Reasons:
  • Blacklisted phrase (1): I have the same problem
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): I have the same problem
  • Single line (0.5):
  • Low reputation (1):
Posted by: AH Forootan

79173476

Date: 2024-11-09 18:58:33
Score: 0.5
Natty:
Report link

It is simple. Just perform bit shift using division:

function bitAtPos(mask: number, pos: number): number {
  return mask / 2 ** pos & 1;
}

bitAtPos(18446744073709552000, 64) // 1
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Aleko

79173466

Date: 2024-11-09 18:49:32
Score: 3
Natty:
Report link

my windows 10 pc with fnm node manager: C:\Users\WilliamLi\AppData\Roaming\fnm\node-versions\v22.11.0\installation\node.exe

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

79173465

Date: 2024-11-09 18:48:32
Score: 2
Natty:
Report link

If you can please provide context about the need for such a function I am happy to adjust my response but given your function I was able to simply the code to the following.

def docal2(a: np.array, b: np.array, d: np.array) -> np.array:
    r, c = a.shape
    sum_ = np.zeros(c, dtype=float)
    for i in range(r):
        sum_[0:d[i]] -= a[i, 0]
        sum_[d[i]] += b[i, 0]
        print(f"{sum_=}")
    return sum_

This should prevent unecessay slicing of your original data and speed up the computation significantly. If you can provide further context I am happy to help you even vectorize the calculation instead of raw iterations.

Few points:

Reasons:
  • RegEx Blacklisted phrase (2.5): please provide
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: anmol_gorakshakar

79173464

Date: 2024-11-09 18:48:29
Score: 6 🚩
Natty:
Report link

I need more context to figure this out. You said it is a Vite app, so I guess it is SPA with react. Can you tell me what your routes look like? (Is it using react-router-dom?). What about your backend are you using REST or Graphql?

On the http://localhost/F1-Hybrid-Data/f1-app I assume you are fetching data on the mount (or in route in loaders). Can you share your code? for routes and page handling or supposed to handle route F1-Hybrid-Data/f1-app?.

Reasons:
  • Blacklisted phrase (0.5): I need
  • RegEx Blacklisted phrase (2.5): Can you tell me what your
  • RegEx Blacklisted phrase (2.5): Can you share your code
  • Has code block (-0.5):
  • Ends in question mark (2):
  • High reputation (-1):
Posted by: TRomesh

79173451

Date: 2024-11-09 18:40:26
Score: 4.5
Natty: 3
Report link

alvin lim alvin lim alvin lim alvin lim alvin lim

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

79173449

Date: 2024-11-09 18:40:26
Score: 1.5
Natty:
Report link

In my case, I needed to increase both Bundle and Build value under General -> Identity.

Xcode: Version 16.1 (16B40).

Reasons:
  • Blacklisted phrase (0.5): I need
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: litbe

79173448

Date: 2024-11-09 18:39:26
Score: 1
Natty:
Report link

Short answer:

Most likely, Yes. The phrases like are:

Long answer:

So, to answer the question, "[Is there an] umbrella term to refer to both operator precedence and associativity?", please consider below:

I would say, yes, there is such an umbrella term for such programming phrases. After some digging, I might be able to answer my own question that was posted here on stack exchange. This answer will be provided from two angles)

Commonsense Angle (Ad-hoc/Working Solution)

Without considering authoritative and/or official documentation, one may use a commonsense ad-hoc term such as "order of operations". This phrase, in itself, is virtually self-explanatory and most would understand that this likely refers to concepts such as operator associativity and/or operator precedence and borrows from the mathematical concept as it pertains to the BEDMA mnemonic. So, commonsense wise, "Order of Operations" is a sufficient ad-hoc umbrella term.

Documentation-derived Angle (Best Fit/Most Probable Solution)

After scouring through the documentation (the online CPP reference guide), it seems that the term is most likely "Sequence Rules".

Conclusion:

Yes, the best answer is "Sequence Rules", which is followed by the commonsense answer of "order of operations".

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

79173427

Date: 2024-11-09 18:25:23
Score: 1.5
Natty:
Report link

The problem is that when you copy the Player object, the Vector of Hero objects still points to the same heroes as the original Player. So when you add the copied heroes, they end up showing up twice.

To fix this, just create a new Vector for each player's heroes when you're copying, so that the new Player gets its own heroes.

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

79173426

Date: 2024-11-09 18:25:21
Score: 6 🚩
Natty: 4.5
Report link

I have same problem , when i start project it is not happening . I don't know when it start , may be because I install some more npm packages , I am sure but this is very irritating . my project is not finish and every time i start it take too long .

Reasons:
  • Blacklisted phrase (1): I have same problem
  • Low length (0.5):
  • No code block (0.5):
  • Me too answer (2.5): I have same problem
  • Single line (0.5):
  • Low reputation (1):
Posted by: Jaimin Detroja

79173416

Date: 2024-11-09 18:19:19
Score: 3.5
Natty:
Report link

Here is another option that sets Sublime Text 4 as the default text viewer app.

https://apple.stackexchange.com/a/123954

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

79173411

Date: 2024-11-09 18:16:19
Score: 1.5
Natty:
Report link

Why Apple has these two APIs:

navigationBar is iOS/iPad only and toolbar works on macOS (as well as both iOS/iPad). toolbar in SwiftUI is the way to go forward as navigationBar is being deprecated and toolbar works for all target development.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Starts with a question (0.5): Why
  • Low reputation (1):
Posted by: nepheline

79173396

Date: 2024-11-09 18:06:17
Score: 0.5
Natty:
Report link

There is no need to import the file into component you can only add the address to src of anchor tag.

<a
    href={./documents/policy.pdf}
    className={styles.footer__link}
    target="_blank"
    rel="noopener noreferrer"
>
    Policy
</a>;

you can Add download property for downloading the file.

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

79173394

Date: 2024-11-09 18:05:17
Score: 1
Natty:
Report link

you could try:

if (int.TryParse(input, out tinggi))
{
    ...code here
}
else
{
    Console.WriteLine("something in that language");
}
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Cristian-Alexandru SANDU

79173377

Date: 2024-11-09 17:58:15
Score: 0.5
Natty:
Report link

Update for .Net 8 You can deserialize automatically to custom types without using JsonSerializer or similar. My custom type here is corpus_g. My Json is corpora: [{corpus_g object}]

return _configuration
.GetSection("gemini_api")
.GetSection("corpora")
.Get<corpus_g[]>().FirstOrDefault();//
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: heyyy

79173373

Date: 2024-11-09 17:56:15
Score: 0.5
Natty:
Report link

Your Controller will be like:

#[Route('/place_payment/{id}', name: 'place_payment', methods: ['GET', 'POST'])]
public function addPayment(Request $request, Place $place, int $id): Response
    {
        $idPayment = (int) $request->query->get('idPayment');

And your TWIG will be like:

{% for payment in existingPayments %}
   <a href="{{ path('user_place_payment', {'id': place.id, 'idPayment': payment.id }) }}">{{ payment.name }} - delete this payment method</a><br><br>
{% endfor %} 
{% for payment in missingPayments %}
    <a href="{{ path('user_place_payment', {'id': place.id, 'idPayment': payment.id }) }}">{{ payment.name }} - add this payment method</a><br><br>
{% endfor %} 

So, you get URL like your_server/place_payment/103?idPayment=3

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

79173370

Date: 2024-11-09 17:55:14
Score: 1.5
Natty:
Report link

I've found the solution.

Since the redirect is still in place the actual data is never outputted. When I exit(0) after the stream, then the PDF is outputted.

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

79173337

Date: 2024-11-09 17:36:10
Score: 3
Natty:
Report link

on Shared Hosting server's like hostinger becareful as it's case sensitive. use FPDF.php instead of fpdf.php

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

79173336

Date: 2024-11-09 17:36:10
Score: 1
Natty:
Report link
@Configuration
public class WebConfig implements WebMvcConfigurer {
   @Override
   public void addResourceHandlers(ResourceHandlerRegistry registry) {
      registry.addResourceHandler("/webjars/**")
            .addResourceLocations("classpath:/META- 
 INF/resources/webjars/");
   }
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Khayrul Hasan

79173334

Date: 2024-11-09 17:35:09
Score: 0.5
Natty:
Report link

Your db-service Service is of type ClusterIP. That's why you are not able to reach it from external access point.

I can also ping the pod from another pod, and I always receive the packets back

For this same reason, you are able to reach that from another pod within the cluster.

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

79173322

Date: 2024-11-09 17:32:08
Score: 5.5
Natty: 8
Report link

same timeerror in ray happened when i use ray.init() in python, and i have not find any solutions in web, i wonder if you have found any solutions to fix it, rencently, thx.

Reasons:
  • Blacklisted phrase (1): thx
  • Blacklisted phrase (1.5): any solution
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Macintosh Paul

79173312

Date: 2024-11-09 17:25:07
Score: 2.5
Natty:
Report link

const checkoutHandler = ()=>{ navigate('/login?redirect=/shipping')

}
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: user3159368

79173308

Date: 2024-11-09 17:24:06
Score: 1
Natty:
Report link

The problem seems to be that Google Cloud Run doesn't support per-session files, as the service is stateless by default. Solutions include:

Switch to Redis or Firestore for Sessions: Set SESSION_DRIVER=redis (or another central store)

in .env. Redis can be configured with Google's Memorystore, or Firestore can be used with custom setups.

SESSION_DRIVER=redis
REDIS_HOST=your-redis-host
REDIS_PASSWORD=your-redis-password
REDIS_PORT=6379

Set SESSION_DRIVER=cookie: If Redis is not in place, use Cookie Sessions: store session data in encrypted cookies-should be good enough for smaller data.

Set Secure Configs: Insure SESSION_DOMAIN and SESSION_SECURE_COOKIE=true in .env if using a custom domain and HTTPS.

Check CSRF: Ensure your forms include @csrf even if CSRF is disabled on certain routes.

Flush the config and cache after modification

php artisan config:cache 
php artisan cache:clear
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @csrf
  • Low reputation (1):
Posted by: Sathish

79173295

Date: 2024-11-09 17:20:05
Score: 2.5
Natty:
Report link

I have the same problem with desktop application (target framework is net8.0).
The Debug configuration runs without any problem. But Release configuration suddenly gives the following error:
Error message

My application uses Microsoft.NETCore.App framework version 8.0.10:
App framework

Output of 'dotnet --list-runtimes' command is:

Microsoft.AspNetCore.App 8.0.10 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 6.0.33 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 8.0.10 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 6.0.33 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 8.0.10 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

My project is located in regular folder, not OneDrive.

Here is the content of MyApp.runtimeconfig.json file located in the output Release folder near MyApp.exe:

{
  "runtimeOptions": {
    "tfm": "net8.0",
    "framework": {
      "name": "Microsoft.NETCore.App",
      "version": "8.0.0"
    },
    "configProperties": {
      "System.Reflection.Metadata.MetadataUpdater.IsSupported": false,
      "System.Runtime.InteropServices.BuiltInComInterop.IsSupported": true,
      "System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false,
      "System.Text.Json.JsonSerializer.IsReflectionEnabledByDefault": false
    }
  }
}
Reasons:
  • Blacklisted phrase (1): I have the same problem
  • Long answer (-1):
  • Has code block (-0.5):
  • Me too answer (2.5): I have the same problem
  • Low reputation (0.5):
Posted by: Sergey

79173293

Date: 2024-11-09 17:20:05
Score: 2.5
Natty:
Report link

to get rid of this you must use -crlf option with openssl and give a new line after period(.). let me know if it doesn't work

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

79173291

Date: 2024-11-09 17:19:05
Score: 1
Natty:
Report link

I also tried linking against libopenblas.a from the precompiled binaries from the OpenBlas Repo - same as above.

I got this wrong. Adding libopenblas.a in target_link_libraries did not work. However using

SET(OPENBLAS_LIBRARY ${dir_to_lib}/libopenblas.a)

to link OpenBLAS did the Job for me. Looks like SAF needs OPENBLAS_LIBRARY set to work correctly. FetchContent didn't set any library variable for BLAS, unlinke find_package usually would.

I assume that LAPACK on Github contains a different implementation of BLAS and not OpenBLAS.

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: TheBaum

79173290

Date: 2024-11-09 17:18:05
Score: 2.5
Natty:
Report link

Fortunately, adding -o local into mount options did the trick for me.

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

79173288

Date: 2024-11-09 17:16:04
Score: 0.5
Natty:
Report link

Looks like I was able to appease GCC by writing my own version of the ternary operator.

Replacing

float x = p ? t : f;

with the cruder

#pragma omp declare simd
static inline float ternary(bool p, const float t, const float f) {
    return p * t + (!p) * f;
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
Posted by: oliversm

79173280

Date: 2024-11-09 17:11:03
Score: 3
Natty:
Report link

The important thing here is to include the typescript source code inside the library, and also configuring launch.json to resolve source maps location correctly

Here i have a video explaining the changes and debugging typescript code inside node_modules

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

Reasons:
  • Blacklisted phrase (1): youtube.com
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: neovimdev

79173278

Date: 2024-11-09 17:09:03
Score: 2
Natty:
Report link

select score , dense_rank() over ( order by score desc ) as "rank" from Scores

Use this code it will work we need to write rank as "rank" because rank is a funcion that's why it's giving error

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

79173270

Date: 2024-11-09 17:02:01
Score: 4
Natty:
Report link

How to save Macro as a VBA PPT Add in and use that Add In for running Macro in any PPT. Not to plug in VBA code each time.

i am testing a simple sub with MsgBox "Hello" and this macro ran fine as a ppt...So here is what I did

  1. Open PPT
  2. Add a new macro - with above MsgBox in VBA
  3. Close VBA
  4. File Save As abc.pptm
  5. Close it
  6. Reopen abc.pptm
  7. File Save as abc.ppam
  8. Open an existing ppt
  9. File Options Addins - select this abc.ppam
  10. Go to Developer Tab - I click on Power Point Add Ins - I see this abc in the popup as checked and selected
  11. Click on Macro button in Developer Tab - nothing.
  12. Press Alt F11 - no code there.

What am I doing wrong here?

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Unregistered user (0.5):
  • Starts with a question (0.5): How to
  • Low reputation (1):
Posted by: Beginner for VBA Addin for PPT

79173268

Date: 2024-11-09 17:00:58
Score: 9 🚩
Natty: 4.5
Report link

I have the SQL 2022 (RTM-GDR) (KB5046057) and I have same error when trying to view audit log : Item has already been added.'MNDO' key being added : 'MNDO' Please help

Reasons:
  • RegEx Blacklisted phrase (3): Please help
  • RegEx Blacklisted phrase (1): I have same error
  • Low length (1):
  • No code block (0.5):
  • Me too answer (2.5): I have same error
  • Low reputation (1):
Posted by: farid amroun

79173261

Date: 2024-11-09 16:57:58
Score: 0.5
Natty:
Report link

More of a workaround than a proper solution to my problem, but when I use the parameters in the URL directly instead of in the query argument it works as expected:

  const fromISO = from.toISOString()
  const toISO = to.toISOString()    

  const { data, error } = await useAPI<RateResponse>(
    `/users/${userId}/projects/${projectId}/rates?from=${fromISO}&to=${toISO}`)
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: zmaten

79173248

Date: 2024-11-09 16:50:56
Score: 2.5
Natty:
Report link

The workaround is to create a reverse proxy to map to the new endpoint for the target path.

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

79173235

Date: 2024-11-09 16:46:55
Score: 1
Natty:
Report link

Quoter:

By having the error message A partner claim with id 'identifier' is not found , it is primarily due to neither of the inherited policy [Base or Extensions] provides the output claim of email from the orchestration step 1 that is prerequisite of GenerateOTP technical profile (TP) input claim [partner claim identifier in your policy].

If I understand correctly, as you are using SelfAsserted-LocalAccountSignin-Email TP for signin, then the signInName carries only email that you can copied into email claim type just before invoking Generate OTP profile for resolving the issue.

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

79173226

Date: 2024-11-09 16:42:55
Score: 1
Natty:
Report link

if using Snowflake SQL (unsure if this works on others), you can embed an "iff" condition in the window function to do something like this:

select Person, rank() over (partition by Restaurant order (iff(Person is null, 0, arrival_time) by arrival_time asc) as arrival_rank from dinner_show_up;

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

79173225

Date: 2024-11-09 16:42:53
Score: 6.5 🚩
Natty: 5.5
Report link

I signed up just to ask if you solved it, because I have the same problem on the same config.

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

79173217

Date: 2024-11-09 16:37:51
Score: 1.5
Natty:
Report link

If you are using koin 3.5.6 and above, implement this library io.insert-koin:koin-compose-viewmodel

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

79173208

Date: 2024-11-09 16:32:50
Score: 3
Natty:
Report link

I have created detailed video on whitelabel in angular 18, I have done it using scss and css variables, https://www.youtube.com/watch?v=MPczXDSsNMA

Reasons:
  • Blacklisted phrase (1): youtube.com
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
Posted by: Deepak Jha

79173206

Date: 2024-11-09 16:31:49
Score: 3
Natty:
Report link

That sample is out of date and not maintained. It is not linked from anywhere else in our website that I know of. Out of curiosity, how did you find it?

If you truly need an XML example for how to configure spring security, please see this xml sample. However, we have other samples that I would recommend over the xml configuration example. You may also find Spring Academy useful. It is free to create an account and browse all of the tutorials and courses.

Reasons:
  • RegEx Blacklisted phrase (3): did you find it
  • No code block (0.5):
  • Contains question mark (0.5):
  • High reputation (-1):
Posted by: Steve Riesenberg

79173201

Date: 2024-11-09 16:30:49
Score: 2
Natty:
Report link

This is a little vast answer, I know this is an old question but I think my answer can help. There are ways to do that using scss+css variables, I have found a video that does exactly that, check this out, https://www.youtube.com/watch?v=MPczXDSsNMA

Reasons:
  • Blacklisted phrase (1): youtube.com
  • Low length (0.5):
  • No code block (0.5):
Posted by: Deepak Jha

79173200

Date: 2024-11-09 16:30:49
Score: 3
Natty:
Report link

The important thing here is to include the typescript source code inside the library, and also configuring launch.json to resolve source maps location correctly

Here i have a video explaining the changes and debugging typescript code inside node_modules

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

Reasons:
  • Blacklisted phrase (1): youtube.com
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: neovimdev

79173182

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

No need for charAt(), just use str[i] instead.

function separated(str) {
for (var i = 0; i < str.length; i++) {
    if ((str[i] == "a") && (str[i + 4] == "b")) {
        return true
    } else {
        return false
    }
}

}

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

79173181

Date: 2024-11-09 16:22:47
Score: 2
Natty:
Report link

Yes, use: isolate(input$a) + input$b

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

79173179

Date: 2024-11-09 16:21:47
Score: 2
Natty:
Report link

I am trying to find the API for Windows Voice Access. Microsoft .NET docs are confusing as its not clear what recognition backend Windows Voice Access or (SAPI) 5.3 is being used.

If I run code system.speech.recognition it seem to use (SAPI) 5.3 not Windows Voice Access

SpeechRecognitionEngine.SetInputToWaveFile Method for (SAPI) 5.3 loads a file to be recognition and execute a recognized command form a grammar.

Reasons:
  • Blacklisted phrase (1): I am trying to
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: TheMast

79173170

Date: 2024-11-09 16:16:46
Score: 3
Natty:
Report link

Had the same problem, running:

npx expo start -c

Solved it for me.

Source: https://docs.swmansion.com/react-native-reanimated/docs/guides/troubleshooting/#mismatch-between-javascript-code-version-and-reanimated-babel-plugin-version

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

79173162

Date: 2024-11-09 16:14:45
Score: 3.5
Natty:
Report link

You're using Queueable and you're not running your queue worker in Laravel.

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

79173155

Date: 2024-11-09 16:12:45
Score: 2
Natty:
Report link

Use

$mail->Host = 'smtp.titan.email';
$mail->Port = 587;
$mail->SMTPSecure='tls';
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Chidera Thankgod Obed

79173150

Date: 2024-11-09 16:10:45
Score: 0.5
Natty:
Report link

trig_table_ii : instead of insert -> The triggers that fire instead of performing the execution of DML statements (Insert, Update, and delete) are instead of triggers. In your case, DML will be insert. trig_table_ti : for insert The triggers that fire after performing the execution of DML statements (Insert, Update, and delete) are After/For triggers. In your case, DML will be insert.

Question. Which trigger will fire first or trigger first? Answer. Instead of triggers are fired even before the updates (insert operation) are made in the underlying base tables. So, Definitely, Instead of trigger will fire first. But, here is an important catch. Instead of trigger will execute statements which is inside the create trigger block even if there is some issues with the original insert statement. On the other hand, After/For Trigger will not fire because it will stop if original insert does not work properly.

Reasons:
  • Whitelisted phrase (-1): In your case
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Abhishek Newase

79173145

Date: 2024-11-09 16:09:44
Score: 0.5
Natty:
Report link

I also face the issue in deploying my spring boot app with tomcat , The below are the things which i did

I dont even see any errors while making the tomcat server up

I am not sure what is the problem here

I will attach the pom,main spring boot application,controller class and log file

Below is my pom file

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<packaging>war</packaging>

<groupId>org.example</groupId>
<artifactId>hibernate_learning</artifactId>
<version>1.0-SNAPSHOT</version>
<build>
    <finalName>hibernate_app</finalName>
</build>
<!-- https://mvnrepository.com/artifact/org.hibernate.orm/hibernate-core -->
<dependencies>
    <dependency>
        <groupId>org.hibernate</groupId>
        <artifactId>hibernate-core</artifactId>
        <version>6.6.1.Final</version> <!-- Ensure this version matches your Hibernate version -->
    </dependency>
    <dependency>
        <groupId>mysql</groupId>
        <artifactId>mysql-connector-java</artifactId>
        <version>8.0.32</version> <!-- or the latest version -->
    </dependency>
    <dependency>
        <groupId>javax.persistence</groupId>
        <artifactId>javax.persistence-api</artifactId>
        <version>2.2</version> <!-- or a newer version if applicable -->
    </dependency>

    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-web</artifactId>
        <version>3.3.4</version>
    </dependency>

    
    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-tomcat</artifactId>
        <version>3.3.5</version>
    </dependency>


    <dependency>
        <groupId>log4j</groupId>
        <artifactId>log4j</artifactId>
        <version>1.2.17</version> <!-- or the latest version -->
    </dependency>
    <!-- Jackson Databind -->
    <dependency>
        <groupId>com.fasterxml.jackson.core</groupId>
        <artifactId>jackson-databind</artifactId>
        <version>2.15.2</version> <!-- Check and update version as per Spring Boot -->
    </dependency>

    <!-- Jackson Core -->
    <dependency>
        <groupId>com.fasterxml.jackson.core</groupId>
        <artifactId>jackson-core</artifactId>
        <version>2.15.2</version>
    </dependency>

    <!-- Jackson Annotations -->
    <dependency>
        <groupId>com.fasterxml.jackson.core</groupId>
        <artifactId>jackson-annotations</artifactId>
        <version>2.15.2</version>
    </dependency>

</dependencies>

Below is my main file

    package org.example.api;


import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;

@SpringBootApplication
public class entityAPI extends SpringBootServletInitializer { // the extended is for the tomcat
    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
        return application.sources(entityAPI.class);
    }
    public static void main(String[] args) {
        SpringApplication.run(entityAPI.class, args);
    }
}

here is the controller file

package org.example.api;

import org.example.Student;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;
import java.util.HashMap;

@RestController
@RequestMapping("/api/students")
public class StudentController {

    @Autowired
    private ServiceLayer studentService;

    @GetMapping("/healthCheck")
    public String sample() {
        return "I am healthy";
    }
}

Here is the Log file

09-Nov-2024 20:08:53.883 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-8080"]
09-Nov-2024 20:08:53.901 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in [2198] milliseconds

09-Nov-2024 20:10:16.716 INFO [http-nio-8080-exec-7] org.apache.catalina.startup.HostConfig.deployWAR Deploying web application archive [C:\apache-tomcat-9.0.97\webapps\hibernate_app.war]
09-Nov-2024 20:10:21.893 WARNING [http-nio-8080-exec-7] org.apache.tomcat.util.descriptor.web.WebXml.setVersion Unknown version string [6.0]. Default version will be used.
09-Nov-2024 20:10:21.952 WARNING [http-nio-8080-exec-7] org.apache.tomcat.util.descriptor.web.WebXml.setVersion Unknown version string [6.0]. Default version will be used.
09-Nov-2024 20:10:21.969 WARNING [http-nio-8080-exec-7] org.apache.tomcat.util.descriptor.web.WebXml.setVersion Unknown version string [5.0]. Default version will be used.
09-Nov-2024 20:10:25.221 INFO [http-nio-8080-exec-7] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
09-Nov-2024 20:10:25.229 INFO [http-nio-8080-exec-7] org.apache.catalina.startup.HostConfig.deployWAR Deployment of web application archive [C:\apache-tomcat-9.0.97\webapps\hibernate_app.war] has finished in [8,513] ms

09-Nov-2024 20:18:01.683 INFO [Thread-1] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-8080"]
09-Nov-2024 20:18:01.707 INFO [Thread-1] org.apache.catalina.core.StandardService.stopInternal Stopping service [Catalina]
09-Nov-2024 20:18:01.747 INFO [Thread-1] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-8080"]
09-Nov-2024 20:18:01.765 INFO [Thread-1] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-8080"]
09-Nov-2024 20:18:25.346 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version name:   Apache Tomcat/9.0.97
09-Nov-2024 20:18:25.349 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server built:          Nov 6 2024 19:55:19 UTC
09-Nov-2024 20:18:25.350 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version number: 9.0.97.0
09-Nov-2024 20:18:25.350 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name:               Windows 11
09-Nov-2024 20:18:25.350 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version:            10.0
09-Nov-2024 20:18:25.350 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture:          amd64
09-Nov-2024 20:18:25.351 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home:             C:\jdk-21.0.2
09-Nov-2024 20:18:25.351 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Version:           21.0.2+13-58
09-Nov-2024 20:18:25.351 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor:            Oracle Corporation
09-Nov-2024 20:18:25.351 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE:         C:\apache-tomcat-9.0.97
09-Nov-2024 20:18:25.351 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME:         C:\apache-tomcat-9.0.97
09-Nov-2024 20:18:25.357 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: --add-opens=java.base/java.lang=ALL-UNNAMED
09-Nov-2024 20:18:25.357 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: --add-opens=java.base/java.io=ALL-UNNAMED
09-Nov-2024 20:18:25.357 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: --add-opens=java.base/java.util=ALL-UNNAMED
09-Nov-2024 20:18:25.357 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: --add-opens=java.base/java.util.concurrent=ALL-UNNAMED
09-Nov-2024 20:18:25.357 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED
09-Nov-2024 20:18:25.357 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.config.file=C:\apache-tomcat-9.0.97\conf\logging.properties
09-Nov-2024 20:18:25.358 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
09-Nov-2024 20:18:25.358 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djdk.tls.ephemeralDHKeySize=2048
09-Nov-2024 20:18:25.358 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.protocol.handler.pkgs=org.apache.catalina.webresources
09-Nov-2024 20:18:25.358 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dignore.endorsed.dirs=
09-Nov-2024 20:18:25.358 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.base=C:\apache-tomcat-9.0.97
09-Nov-2024 20:18:25.359 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.home=C:\apache-tomcat-9.0.97
09-Nov-2024 20:18:25.359 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.io.tmpdir=C:\apache-tomcat-9.0.97\temp
09-Nov-2024 20:18:25.361 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent Loaded Apache Tomcat Native library [1.3.1] using APR version [1.7.4].
09-Nov-2024 20:18:25.362 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true], UDS [true].
09-Nov-2024 20:18:25.362 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR/OpenSSL configuration: useAprConnector [false], useOpenSSL [true]
09-Nov-2024 20:18:25.366 INFO [main] org.apache.catalina.core.AprLifecycleListener.initializeSSL OpenSSL successfully initialized [OpenSSL 3.0.14 4 Jun 2024]
09-Nov-2024 20:18:25.598 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-8080"]
09-Nov-2024 20:18:25.620 INFO [main] org.apache.catalina.startup.Catalina.load Server initialization in [427] milliseconds
09-Nov-2024 20:18:25.675 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Catalina]
09-Nov-2024 20:18:25.675 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.97]
09-Nov-2024 20:18:25.700 INFO [main] org.apache.catalina.startup.HostConfig.deployWAR Deploying web application archive [C:\apache-tomcat-9.0.97\webapps\hibernate_app.war]
09-Nov-2024 20:18:30.326 WARNING [main] org.apache.tomcat.util.descriptor.web.WebXml.setVersion Unknown version string [6.0]. Default version will be used.
09-Nov-2024 20:18:30.332 WARNING [main] org.apache.tomcat.util.descriptor.web.WebXml.setVersion Unknown version string [6.0]. Default version will be used.
09-Nov-2024 20:18:30.340 WARNING [main] org.apache.tomcat.util.descriptor.web.WebXml.setVersion Unknown version string [5.0]. Default version will be used.
09-Nov-2024 20:18:31.811 INFO [main] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
09-Nov-2024 20:18:31.854 INFO [main] org.apache.catalina.startup.HostConfig.deployWAR Deployment of web application archive [C:\apache-tomcat-9.0.97\webapps\hibernate_app.war] has finished in [6,153] ms

and here is my folder structure

+---src
|   +---main
|   |   +---java
|   |   |   \---org
|   |   |       \---example
|   |   |           |   CreateData.java
|   |   |           |   DeleteData.java
|   |   |           |   Main.java
|   |   |           |   Student.java
|   |   |           |   UpdateData.java
|   |   |           |
|   |   |           \---api
|   |   |                   entityAPI.java
|   |   |                   readMe.md
|   |   |                   ServiceLayer.java
|   |   |                   StudentController.java
|   |   |
|   |   \---resources
|   |           application.properties
|   |           hibernate.cfg.xml
|   |           retrieveOutput.json
|   |
|   \---test
|       \---java
\---target
    |   hibernate_app.war
    |
    +---classes
    |   |   application.properties
    |   |   hibernate.cfg.xml
    |   |   retrieveOutput.json
    |   |
    |   \---org
    |       \---example
    |           |   CreateData.class
    |           |   DeleteData.class
    |           |   Main.class
    |           |   Student.class
    |           |   UpdateData.class
    |           |
    |           \---api
    |                   entityAPI.class
    |                   ServiceLayer.class
    |                   StudentController.class
    |
    +---generated-sources
    |   \---annotations
    +---generated-test-sources
    |   \---test-annotations
    +---hibernate_app
    |   +---META-INF
Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @SpringBootApplication
  • Low reputation (1):
Posted by: Bharathwajan

79173143

Date: 2024-11-09 16:08:44
Score: 1.5
Natty:
Report link

in my case I use Expo, and the only solution was setting "expo": {"backgroundColor": } in app.json

to change with theme use "expo-system-ui" SystemUI.setBackgroundColorAsync(usetheme.colors.background);

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

79173125

Date: 2024-11-09 15:59:42
Score: 3.5
Natty:
Report link

You can copy over node_modules folder when you switch to another git worktree

Here i have a vide explaining the process:

https://www.youtube.com/watch?v=4Ibf97ZNdiE&t=51s

Reasons:
  • Blacklisted phrase (1): youtube.com
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: neovimdev

79173123

Date: 2024-11-09 15:59:42
Score: 0.5
Natty:
Report link

If you are using REST calls on your JS code, you can point to a endpoint like that: https://generativelanguage.googleapis.com/v1beta/$modelname:generateContent?key=$GOOGLE_API_KEY

You can find more details at the Fine-tuning tutorial page.

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

79173105

Date: 2024-11-09 15:47:39
Score: 0.5
Natty:
Report link

After a lot of debugging, tracing, it comes from the useragent

Curl called from command line send a default useragent string (like curl/7.41)

phpcurl by default send no user agent , and now OVH refuse this calls

I simply added :

$ch = curl_init(wswwwurl); 
/* !!! useragent is now MANDATORY when calling OVH !!! */ 
$config['useragent'] = 'Mozilla/5.0 (Windows NT 6.2; WOW64; rv:17.0) Gecko/20100101 Firefox/17.0';
curl_setopt($ch, CURLOPT_USERAGENT, $config['useragent']);

And it's now ok again !

rem : I tried to add CURLOPT_FOLLOWLOCATION, but then OVH server redirects to another page "blocked request"

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