79543670

Date: 2025-03-29 17:57:06
Score: 2
Natty:
Report link
spring.batch.initialize-schema=ALWAYS

Letter case of "ALWAYS", suprisingly matters

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

79543656

Date: 2025-03-29 17:47:04
Score: 0.5
Natty:
Report link

This is indeed not possible to do currently in Rust; there is an open RFC to allow it.

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

79543647

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

The issue of std::exception not being caught in C++ can arise due to several reasons:

1. Incorrect Exception Type – std::exception does not have a constructor that takes a string argument. Instead, use std::runtime_error or std::logic_error to pass an error message.

2. Heap Allocation of Exception – If an exception is thrown using throw new some_exception and caught with catch (some_exception &exc), it won’t be caught because new returns a pointer, and exception handling expects an object reference.

3. Buffering Issues in Output – If the exception is caught but not printing, ensure std::cerr is used instead of std::cout, or add \n at the end of the error message for immediate output.

4. Compiler/Debugger Settings – Some compilers require enabling C++ exceptions explicitly. Also, breakpoints set before the throw statement can sometimes mislead debugging.

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

79543640

Date: 2025-03-29 17:37:02
Score: 4
Natty: 6
Report link

Même problème ! Mais toute ces suggestions ne fonctionnent pas ! Besoin d'aide

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

79543637

Date: 2025-03-29 17:32:01
Score: 0.5
Natty:
Report link

The code syntax below should properly solve your problem.

TabLayout tabLayout = ...;
if (tabLayout.getMeasuredHeight() == 0) tabLayout.measure(View.MeasureSpec.UNDEFINED, View.MeasureSpec.UNDEFINED);
int tabLayoutHeight = tabLayout.getMeasuredHeight();
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Moz

79543633

Date: 2025-03-29 17:30:00
Score: 0.5
Natty:
Report link

Imagine you have a box of toys (a "collection"). The For Each loop is like saying:

"For every toy in this box, I want to do something with it (like inspect it, put it on a shelf, etc.). Once I've done that something with every single toy in the box, I'm done."

You don't tell it how many times to run. It runs once for each item in a collection (like a box of toys, a range of cells in Excel, etc.). The number of times it runs depends on how many items are in the collection.


Let's say you have some numbers in cells A1 to A5 of your Excel sheet, and you want to double the value of each of these cells using VBA. Here's how you could do it with a For Each loop:

Sub DoubleCellValues()

  Dim cell As Range 'Declare a variable to hold each cell
  Dim myRange As Range

  'Define the range you want to loop through (A1:A5)
  Set myRange = Range("A1:A5")

  'For Each cell in the range...
  For Each cell In myRange
    'Double the value of the cell
    cell.Value = cell.Value * 2
  Next cell 'Move to the next cell in the range

End Sub

The For Each loop is designed to easily process every item in a collection (like a range of cells), without you having to worry about keeping track of indexes or counters. It makes your code cleaner and easier to read when you want to do the same thing to every item in a group.

Reasons:
  • RegEx Blacklisted phrase (1): I want
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: district9

79543629

Date: 2025-03-29 17:25:59
Score: 2.5
Natty:
Report link

Try

dotnet nuget locals all --clear

worked for me in 2025

Reasons:
  • Whitelisted phrase (-1): worked for me
  • Low length (1.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: J H J Loaring

79543624

Date: 2025-03-29 17:22:59
Score: 1
Natty:
Report link

Adding the NF suffix solved my issue. From the VS Code docs at https://code.visualstudio.com/docs/terminal/appearance

Nerd Fonts work the same and typically have a " NF" suffix, the following is an example of how to configure Hack's nerd fonts variant:

"terminal.integrated.fontFamily": "'Hack NF'"
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Pieter Mertens

79543618

Date: 2025-03-29 17:19:58
Score: 2
Natty:
Report link

You can also toggle "Tx" to "Manual" in your DataGrip session for temporary change in transaction control.

enter image description here

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

79543613

Date: 2025-03-29 17:13:57
Score: 4
Natty: 4
Report link

Wow. Thats the best, shortest, and most straight forward printing code ....

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

79543612

Date: 2025-03-29 17:12:56
Score: 3
Natty:
Report link

Meysam - Your solution worked for me. Thanks so much

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Whitelisted phrase (-1): worked for me
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: William Santa

79543604

Date: 2025-03-29 17:08:55
Score: 0.5
Natty:
Report link

I've created a command-line tool called subscan that does exactly what you're looking for. It combines all the steps you mentioned into a single pipeline:

  1. Crop video to subtitle area
  2. Extract frames at specified frame rate
  3. OCR the frames (using Apple's Vision framework for better accuracy)
  4. Remove duplicates and empty lines

Here's how to use it:

# Install via Homebrew
brew tap vangie/formula
brew install subscan

# Basic usage (read from file)
subscan -i video.mp4 -a 600x50+210+498 -o subtitles.txt

# Using pipe with custom frame rate (2 fps)
cat video.mp4 | subscan -a 600x50+210+498 -r 2 > subs.txt

# Use fast mode with specific languages
subscan -i video.mp4 -a 600x50+210+498 -f -l "en-US,zh-CN" -o subs.txt

Key features:

The tool is open source and available at: https://github.com/vangie/subscan

Requirements:

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

79543603

Date: 2025-03-29 17:08:55
Score: 1
Natty:
Report link

The option "Current Query" in the Loop Grid widget takes the value set in the WordPress Settings -> Reading. This is not a bug but an intended functionality.

Here they explain this is for compatibility and they are not going to change it: https://github.com/elementor/elementor/issues/20976

Your issue is weird, maybe you have a very high value in your WordPress settings.

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

79543586

Date: 2025-03-29 17:00:54
Score: 2
Natty:
Report link

You can use check_c_compiler_flag

https://cmake.org/cmake/help/latest/module/CheckCCompilerFlag.html

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

79543578

Date: 2025-03-29 16:55:53
Score: 3
Natty:
Report link

My issue was I added Microsoft OFFICE 16.0 Object Library when it should have been Microsoft WORD 16.0 Object Library in the VBA > Tools > References tab. The code created should work fine as long as you add the correct references!

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

79543575

Date: 2025-03-29 16:53:52
Score: 1
Natty:
Report link

Actually, if you "just" want to keep the current path, modern versions of pkexec do have an option for that:

pkexec --keep-cwd

Thanks to @Wang, who answered this in another question.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (1): another question
  • Low length (1):
  • Has code block (-0.5):
  • High reputation (-1):
Posted by: rugk

79543569

Date: 2025-03-29 16:49:51
Score: 4
Natty:
Report link

The problem lied within Bun's v1.2.6 update. Reverting back to 1.2.5 fixed this issue.

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

79543568

Date: 2025-03-29 16:46:50
Score: 2
Natty:
Report link

Thanks Chux.

When setting up and configuring MobSF dynamic analysis, and using Android Studio AVD, if you use an API above 29, you will consistently get a "/system not writeable, this AVD can't be used for dynamic analysis".

To fix this, use API 28, I configured a Pixel 3 XL. Hope this helps other people.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Whitelisted phrase (-1): Hope this helps
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: user30099078

79543567

Date: 2025-03-29 16:45:50
Score: 0.5
Natty:
Report link

Instead of replacing the entire contact object, update only the email field using MongoDB's dot notation as contact.email

await Client.findByIdAndUpdate(
    id,
    { $set: { "contact.email": <New_Email> } }, 
    { new: true, runValidators: true } // returns updated doc & enforce schema validation
);

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

79543561

Date: 2025-03-29 16:41:49
Score: 2
Natty:
Report link

This kind of old, so you probably solved it already.

@first: OpenAPI Specification and Swagger tools are for HTTP-based APIs only and do not support other protocols like FTP.

Reasons:
  • Blacklisted phrase (1): enter image description here
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @first
  • Low reputation (1):
Posted by: Niels Vanoort

79543558

Date: 2025-03-29 16:41:49
Score: 1.5
Natty:
Report link

Sorting by index in the desired order:

def sort_string(s): 
    return ''.join(sorted(s, key='23456789TJQKA'.index))

print(sort_string('Q4JTK') == '4TJQK')
print(sort_string('9T43A') == '349TA')
print(sort_string('T523Q') == '235TQ')

Attempt This Online!

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

79543555

Date: 2025-03-29 16:38:49
Score: 1
Natty:
Report link
public static bool HasUniqueChars(string input)
{
    HashSet<char> chars = new HashSet<char>();

    foreach (char ch in input)
    {
        if (chars.Contains(ch))
        {
            return false;
        }
        else
        {
            chars.Add(ch);
        }
    }

    return true;
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: temaxx

79543553

Date: 2025-03-29 16:36:48
Score: 2.5
Natty:
Report link

I contacted my hosting site. They cleared some caches somewhere. They are sending those details to me.

They did mention that it could be Cloudflare but that was not the case.

Will share more details when they become available regarding which cache(s) was cleared to fix the issue.

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

79543507

Date: 2025-03-29 16:07:43
Score: 0.5
Natty:
Report link

You may try to use the option in application.properties

quarkus.hibernate-orm.active=false

or environment variable

QUARKUS_HIBERNATE_ORM_ACTIVE=false

Read more: https://quarkus.io/guides/hibernate-orm#quarkus-hibernate-orm_quarkus.hibernate-orm.enabled

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

79543502

Date: 2025-03-29 16:05:42
Score: 5.5
Natty: 7
Report link

testssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Has no white space (0.5):
  • Single line (0.5):
  • Filler text (0.5): ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss
  • Low entropy (1):
  • Low reputation (1):
Posted by: Павел Здерев

79543497

Date: 2025-03-29 15:58:41
Score: 4.5
Natty: 4
Report link

I have the same query as in the question above.

Regarding the answer by @oliver

As a MWE, I wish to create a simple test package with 2 files.

$ cat hello.sh 
#!/usr/bin/sh
cat mydatafolder/data.txt

$ cat mydatafolder/data.txt 
Hello World!


hello-world-1.0 $ tree -L 1
.
├── debian
├── hello.sh
└── mydatafolder

3 directories, 1 file

Now how do I refer to data.txt so that the same incantation works both while creating the package and after installing it.

Here is what I tried:

hello-world-1.0$ cat debian/install 
hello.sh usr/bin
mydatafolder/* usr/share/mydatafolder
hello-world-1.0$ echo $XDG_DATA_DIRS 
/usr/share/gnome:/usr/local/share/:/usr/share/

When I create and install the package it says :

$ hello.sh
cat: mydatafolder/data.txt: No such file or directory

Should'nt mydatafolder which is in /usr/share/ be in the list of folders in $XDG_DATA_DIRS ? Is that not how it works? What am I missing?

Reasons:
  • Blacklisted phrase (1): how do I
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • User mentioned (1): @oliver
  • Looks like a comment (1):
  • Low reputation (0.5):
Posted by: user2338823

79543485

Date: 2025-03-29 15:50:39
Score: 1
Natty:
Report link

Use vip package for that

vip::vip(model_rf)
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
Posted by: drastega

79543482

Date: 2025-03-29 15:50:39
Score: 5.5
Natty:
Report link

are you doing namaste react? i'm also stuck in same problem

Reasons:
  • RegEx Blacklisted phrase (1.5): i'm also stuck
  • Low length (1.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Ashish N M

79543481

Date: 2025-03-29 15:49:38
Score: 2.5
Natty:
Report link

Try to use better models for the embeddings, that bad embedding models could cause a decrease in accuracy.

See mteb-embedding-leaderboard

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

79543472

Date: 2025-03-29 15:45:37
Score: 2.5
Natty:
Report link

Are you still doing this?

I have a solution that I've been using on "timebucks.com" for almost a year now.

I can't make it a public repository but you can reach me so that we can share ideas. You can text on wa.me/254114058155

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Ochie Austine

79543464

Date: 2025-03-29 15:36:35
Score: 5
Natty:
Report link

hi i think you need to install lsp server, you can do it with mason.

https://www.youtube.com/watch?v=h4g0m0Iwmys&ab_channel=typecraft

Reasons:
  • Blacklisted phrase (1): youtube.com
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Maxim Kostrov

79543463

Date: 2025-03-29 15:33:35
Score: 1
Natty:
Report link

I experienced a similar problem. I use IntersectionObserver for infinite scroll. I tested it out on many different devices and browsers including MacOS, Linux and Windows devices with Chrome, Safari, Opera, and Edge browsers. I never experienced an error, neither my customers.

However, a week ago a customer stated that scroll is not working on any devices of them. We had online sessions to find the issue, we tried different browsers, etc. The interesting thing, it was working time to time. Then I noticed that I set threshold to 1 without even thinking what it means. (It was actually a snippet of AI generated code) Setting it to a lower value solved the problem.

In short, I believe threshold value may not be very precisely deterministic on different devices/browsers. It may even sometimes work and sometimes not with exactly the same configuration. So, assigning it to a lower value may save you.

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

79543459

Date: 2025-03-29 15:29:34
Score: 2
Natty:
Report link

I faced a problem where the dynamicColor is set to true in the Theme, so the app was not taking my own themes.
I set the dynamicColor to false and now the app is using my intended theme colors.

If dynamicColor is true, then the theme will be based on the users device configurations such as wallpapers.

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

79543458

Date: 2025-03-29 15:29:34
Score: 2.5
Natty:
Report link

The problem has gone away as mysteriously as it appeared... Lovely.

I did see some updates go by with the copilot extension.

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

79543457

Date: 2025-03-29 15:29:34
Score: 3
Natty:
Report link

I tried to copy and paste, but the customer details box is not showing. Also, everything is aligned to the right instead of the left.

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

79543442

Date: 2025-03-29 15:19:32
Score: 1
Natty:
Report link

Foreground Service rather than the ViewModel. Here’s why:

1. Lifecycle Considerations: A ViewModel is tied to the lifecycle of a UI component (Activity/Fragment). If your UI is destroyed (e.g., user navigates away, system kills the app), the ViewModel might also be cleared. The service, however, runs independently in the background.

2. Service Responsibility: Since you need to manage playback, pausing, and stopping while showing notifications, it makes sense to control the Recorder directly in the Foreground Service. The service should be responsible for keeping the recording process alive and updating the notification accordingly.

3. Communication:

The ViewModel can observe and send commands to the Service using MutableLiveData, StateFlow, or BroadcastReceiver.

The Service should expose control functions (start, pause, stop) and notify the UI about state changes via LiveData, Flow, or a BoundService

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

79543435

Date: 2025-03-29 15:14:31
Score: 1
Natty:
Report link

Since this is the top result on Google, let me reorganize the explanation for clarity:

Key Findings:
After troubleshooting, I confirmed the core issue: ​Apple's developer certificates function as a certificate chain, not standalone files. The complete set must be properly installed for trust validation.

Steps to Fix:

  1. Download Apple's Root Certificates (e.g., G3, G6) from the official list:
    → Apple Certificate Authority Page

    • If signing requires a specific type (e.g., Developer ID -G1/-G2), locate and install the matching certificates from the right-side list.
  2. Critical Pre-Requisite:

    • Your personal/team certificates ​will not work until Apple’s root and intermediate certificates are installed system-wide.

    • Why "Always Trust" fails? → Missing root certificates break the trust chain, making manual trust settings ineffective.

  3. Final Verification:

    • After installing the root CA, ​reinstall your certificate.

    • Check the trust status under ​**"Use System Default"—it should now show ​"Trusted"** automatically.

This issue commonly blocks developers, and Apple’s documentation doesn’t emphasize the certificate chain dependency. By clarifying the workflow here, we save others hours of debugging.

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

79543433

Date: 2025-03-29 15:12:30
Score: 7
Natty: 7
Report link

Need help with this too Where should I put this function or is it a file I need to save?

Reasons:
  • Blacklisted phrase (0.5): I need
  • Blacklisted phrase (1.5): Where should I
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Fredrick Aniebonam

79543430

Date: 2025-03-29 15:11:30
Score: 2.5
Natty:
Report link

Cls.

Ver.

Date.

Foreexcellence.

Anything such as thing.

An excellence is not a skill it's an attitude

Being an excellence it's all matter of mind ing

Small matters.

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

79543426

Date: 2025-03-29 15:06:29
Score: 1
Natty:
Report link

Replace your simple Redirect directives with mod_rewrite rules that check the hostname:

# Redirects for myrnainterior.com

RewriteCond %{HTTP_HOST} ^(www\.)?myrnainterior\.com$ [NC]

RewriteRule ^interieur-styling$ /interieur/interieurstyling [L,R=301]

RewriteRule ^interieurstyling$ /interieur/interieurstyling [L,R=301]

RewriteRule ^renovatie$ /verkoopstyling [L,R=301]

RewriteRule ^fotos-interieurstyling$ /projecten [L,R=301]

RewriteRule ^fotos-verkoopstyling$ /projecten [L,R=301]

RewriteRule ^fotos-renovatie$ /projecten [L,R=301]

RewriteRule ^cookiebeleid$ /privacy [L,R=301]

# Redirects for hetwapenvanrhoon.nl

RewriteCond %{HTTP_HOST} ^(www\.)?hetwapenvanrhoon\.nl$ [NC]

RewriteRule ^brasserie/menukaart/lunch$ /brasserie/menukaart/lunchgerechten [L,R=301]

RewriteRule ^brasserie/menukaart/lunchspecials$ /brasserie/menukaart/specials [L,R=301]

RewriteRule ^hotel-historie$ /historie [L,R=301]

RewriteRule ^terras-rhn42$ /terras [L,R=301]

RewriteRule ^gasterhoon-groep$ /contact [L,R=301]

RewriteRule ^menukaart$ /brasserie/menukaart [L,R=301]

RewriteRule ^ek-voetbal$ /eetcafe [L,R=301]

RewriteRule ^ek-voetbal/voetbalpoule$ /eetcafe [L,R=301]

RewriteRule ^ek-voetbal/reserveren$ /reserveren [L,R=301]

RewriteRule ^category/events$ /evenementen [L,R=301]

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

79543420

Date: 2025-03-29 15:02:28
Score: 3
Natty:
Report link

Thanks @Sayali-MSFT for the answer, which is this:

In scenarios where you're not using bot frameworks and not dealing with real-time interactions (i.e., receiving messages and responding), obtaining the turnContext.Activity.* is not necessarily required. If your goal is purely to send messages at scheduled intervals, you can proceed with the REST API calls as you've indicated. Use the endpoint smba.trafficmanager.net/teams/v3/conversations to create or retrieve the chatId for users.

– Sayali-MSFT

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • No code block (0.5):
  • User mentioned (1): @Sayali-MSFT
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: brakeley

79543409

Date: 2025-03-29 14:55:27
Score: 1.5
Natty:
Report link

The SequelizeConnectionRefusedError occurs when Sequelize fails to connect to a PostgreSQL database due to incorrect configuration, server downtime, network issues, or authentication failures. It can also be caused by firewall restrictions, port conflicts, or database permission settings. Ensuring the database server is running, verifying credentials, and checking network connectivity can help resolve the issue. Proper PostgreSQL configuration, firewall rules, and Docker settings (if applicable) are essential for a stable connection.

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

79543401

Date: 2025-03-29 14:48:26
Score: 3
Natty:
Report link

to close on mac, remove if(process.platform !== 'darwin') {} and just include app.quit() then in your html, create a button with an click event that invokes window.close()

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

79543392

Date: 2025-03-29 14:44:25
Score: 1
Natty:
Report link

TL;DR

The grid size here is supposed to be a power of two as explained in the codelab itself.

-------------------------

Details

From what I can tell, part of the reason why this does not produce the expected output grid-sizes other than 2^n is due to the modulo (%) operation involving the floating point.

Doing f32(my_u32) % my_f32 gives a different result from using two f32(my_u32%my_u32)

The conversion in the first code-line may yield the wrong number in certain cases, and the right number for powers of 2 only.

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Filler text (0.5): -------------------------
  • Low reputation (1):
Posted by: raymond

79543384

Date: 2025-03-29 14:36:23
Score: 1
Natty:
Report link

When debugging a production build, you can utilize the terminal directly on the production server where the build was initiated. The specific commands and procedures will vary depending on your deployment environment.

Alternatively, you can execute the build locally using Node.js by running node .output/server/index.mjs, which allows you to inspect any errors directly in your terminal.

Furthermore, Nuxt.js frequently outputs error messages to the browser console, so examining the console on the production site is highly recommended.

You can run node with --inspect or --inspect-brk flags, and then connect to it with chrome dev tools, or VS code debugger. Example: node --inspect-brk .output/server/index.mjs

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Starts with a question (0.5): When
  • Low reputation (0.5):
Posted by: Igor Zubenko

79543379

Date: 2025-03-29 14:32:23
Score: 1
Natty:
Report link

i asked to a friend of mine called chatgpt... haha... and it answered -> "🧠 No — await and .then() both schedule microtasks with the same priority. However, the timing and nesting of async calls can affect the order in which microtasks are created and executed." I belive consfusion was caused because second code... After console.log("Inner") runs, control returns to outer() where it continues with console.log("Outer"), but this continuation is itself wrapped in another microtask because the await inner() also pauses and changes the timing of outer(). So, each await pauses and schedules the next part of the async function as a new microtask. Therefore, deep chains of await can introduce additional levels of microtasks, which is why "Outer" comes after "Then". I hope I helped ;)

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Rodrigo Eduardo Pereira Ramos

79543371

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

In 2025 to exclude things in your workspace, edit your workspacename.code-workspace file like this:

{
    "folders": [
        {
            "path": "."
        },
    ],
    "settings": {
        "files.exclude": {
            "./path/to/exclude": true,
        }
    }
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Simon

79543366

Date: 2025-03-29 14:12:19
Score: 8
Natty: 7
Report link

I have the same problem. Can I also use this code and do I replace your_login, your_nicename, your_email and your_name everywhere it occurs? What does that "varchar" mean? Do I have to replace that with something too?

Reasons:
  • Blacklisted phrase (1): I have the same problem
  • Low length (0.5):
  • No code block (0.5):
  • Me too answer (2.5): I have the same problem
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Bianca T.

79543362

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

.custom-orange-color {
  color: #F58B30;
}

.custom-pink-color {
  color: #ED178F;
}
<p>This is the custom <span class="custom-orange-color">orange</span> color and this is the custom <span class="custom-pink-color">pink</span> color.</p>

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

79543360

Date: 2025-03-29 14:09:18
Score: 1.5
Natty:
Report link

If you wish to join a worker node to a cluster , it's quite straight forward:

kubeadm token create --print-join-command

Just for your reference, you can also refer the docs

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

79543354

Date: 2025-03-29 14:05:17
Score: 0.5
Natty:
Report link

The SymPy function reduced is not an alternative to multivariate polynomial division, it is exactly the same thing. Now some people prefer to say it division only when the set of divisor polynomials are Grobner (so the remainder is unique). The div function is for univariate division. And the reduced is for multivariate, and you can choose your monomial order as well. reduced( f, F, vars, order = ord) where f is the polynomial that you want to divide, F is the (ordered) list/tuple of divisor polynomials, vars you just write your variables in the order of which is more important (which will be used in your monomial order), and ord is name of your monomial order. So for example you could do reduced( x ** 2 + y, [ 2 * y ], x, y, order = 'grlex' ). In your simple example using lexicographic or graded lexicographic won't make any change, but in other examples it can.

You can watch this short video https://youtu.be/PT3wCsV-8-I and just to let you know, you can use other orders that are not by default defined in SymPy, check this video https://youtu.be/-xIiJ1L9Ack.

Reasons:
  • Blacklisted phrase (1): youtu.be
  • Blacklisted phrase (1): check this video
  • Blacklisted phrase (1): this video
  • Whitelisted phrase (-1.5): you can use
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: AmirHosein Sadeghimanesh

79543342

Date: 2025-03-29 13:55:15
Score: 1
Natty:
Report link

I understood how to do it. I have to get the encoded name of the script in groovy which will be:

String name = groovyLoader.getEncodingString(myString);
String fileName = "Script_" + name + ".groovy";`
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Hervé Girod

79543332

Date: 2025-03-29 13:47:14
Score: 1
Natty:
Report link

It could also be that if you built the app using expo.dev (EAS) then you need to make sure you set the Firebase environment variables there as well

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

79543328

Date: 2025-03-29 13:46:13
Score: 0.5
Natty:
Report link

To prevent creating of this directory and the Main class, uncheck the box for "Add sample code" in the New Project wizard. This is just above the GroupId and ArtifactId in your first picture.

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

79543326

Date: 2025-03-29 13:44:13
Score: 3
Natty:
Report link

Every async function returns a Promise object. While await doesn't technically take priority over .then(), it does influence the order of execution within an async function. The await ensures that the code inside the async function resumes only after the promise resolves, while .then() callbacks are executed during the event loop's microtask phase, prior to the function continuing its execution.

I really enjoy the explanation in Philip Roberts' video, What the Heck is the Event Loop Anyway? — check it out here: https://www.youtube.com/watch?v=8aGhZQkoFbQ.

Reasons:
  • Blacklisted phrase (1): youtube.com
  • Blacklisted phrase (0.5): check it out
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: KaterynaBabii

79543323

Date: 2025-03-29 13:40:12
Score: 2.5
Natty:
Report link
  1. Start Your answer couldn't be submitted. Please see the error above.

  2. Start asking to get answers

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

79543321

Date: 2025-03-29 13:40:12
Score: 2
Natty:
Report link

It is my understanding that both your assumptions are correct. Distance is center to center, i.e., between the x,y coordinates of each agent, regardless of the shape or size of the agent. You would have to calculate the distance between the center of each agent and its edge if you wanted to know the edge-to-edge difference. This might be tricky if agents not more-or-less symmetrical around their center. A coracle perhaps?!

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

79543318

Date: 2025-03-29 13:38:11
Score: 0.5
Natty:
Report link

As I sems the issue is the difference in the methord Signature

.Callback(() => FakeCaptureTargetScreen(
        "Test", // Replace with Real value
        100,   // Replace with Real value
        50,   // Replace with Real value
        bmp => {
            // Process the captured Bitmap (bmp) here
            Console.WriteLine("Bitmap captured!");
        }
    ));

As for the second

Can it be simpified?

I did some reserch ans found specify argument matchers like It.IsAny() are requird for each parameter and Moq does not provide a built-in shorthand to match any value for all parameters. Each parameter must be specified explicitly. For example, your setup must be written as

_mockScreener
    .Setup(x => x.CaptureTargetScreen(
        It.IsAny<string>(),
        It.IsAny<int>(),
        It.IsAny<int>(),
        It.IsAny<Action<Bitmap>>()
    ));
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Vinuka Osura

79543309

Date: 2025-03-29 13:30:10
Score: 0.5
Natty:
Report link

I've run into this issue before, and most LaTeX renderers in React (like react-latex or KaTeX) only support math, not full document rendering.

The best way I found to fully render a LaTeX document inside React is to use latex.js. It actually processes complete LaTeX documents, including \documentclass{}, \section{}, \textbf{}, etc., and converts them into proper HTML.

If you need pixel-perfect LaTeX rendering, your best bet is generating a PDF using pdflatex and embedding it in an . But if you want direct HTML output inside your app, latex.js is the way to go.

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

79543299

Date: 2025-03-29 13:19:08
Score: 0.5
Natty:
Report link

React router seems to apply the aria-current attribute when the link is current

[aria-current] {
    color: white;
}
Reasons:
  • Low length (1):
  • Has code block (-0.5):
Posted by: Antoine Weber

79543290

Date: 2025-03-29 13:12:06
Score: 11.5 🚩
Natty: 5.5
Report link

were you able to overcome that issue? Did you get the version column increased?

Reasons:
  • RegEx Blacklisted phrase (3): Did you get the
  • RegEx Blacklisted phrase (3): were you able
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Randy Guerrero

79543285

Date: 2025-03-29 13:08:05
Score: 1.5
Natty:
Report link

Thanks Vinay for the the workaround and It is really helpful to know that we can use azure cli in terraform data block but I was able to fetch container app env using same data block but this time I fetched calling container app and retrieved its nested element without relying App environment resource

data "azurerm_container_app" "ca_data" {
  name                = "containerappname"
  resource_group_name = data.azurerm_resource_group.rg_data.name
} 
Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Datfreak

79543278

Date: 2025-03-29 13:03:04
Score: 2.5
Natty:
Report link

if none of the solutions fixed your issue, try deleting venv and recreate it again
and make sure you configed the right interpreter

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

79543252

Date: 2025-03-29 12:47:02
Score: 0.5
Natty:
Report link

This connector is not compatible with interactive authentication methods, such as multi-factor authentication (MFA) with Duo Push.

You can use Key-pair authentication for looker user authentication.

Supporting link: https://docs.snowflake.com/en/user-guide/key-pair-auth

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

79543251

Date: 2025-03-29 12:46:01
Score: 3
Natty:
Report link

You can also use the Zero Width Non-Joiner (ZWNJ), typed with Ctrl+Shift+2. Will appear like:
سلام‌خداحافظ

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

79543224

Date: 2025-03-29 12:21:57
Score: 1.5
Natty:
Report link

Thanks for the answer, Richard.

1. the number of users is not the issue - tens, max hundred. They are students of Uni testing the database (deploying, testing, deleting instances according their needs...).

2. Sure,[ template is ready](https://github.com/DoboKostial/archeo_db/blob/master/db/create_db_template.sql) and they will create DBs from template, that is the only reasonable way to do it....

3. I was thinking about foreign data wrappers (having a user table on one database and the other databases will connect to it), but there is one catch - no one guarantees me that one of the students will not delete the original database and I will be without users....

I prefer to put authentication in an independent database (suggestion 1) and prohibit students from entering it. I will solve the synchronization of roles between databases with an [application script](https://github.com/DoboKostial/archeo_db/blob/master/db/synchronize_from_auth_db.py)....

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Long answer (-0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: ďobo

79543216

Date: 2025-03-29 12:13:56
Score: 4
Natty: 5
Report link

Why everytime I am getting ServletContextHandler not found

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Why
  • Low reputation (1):
Posted by: Cmana

79543214

Date: 2025-03-29 12:08:55
Score: 0.5
Natty:
Report link

It seems be caused in dark theme, so you should change color if isSystemDarkTheme() or not.

    val textColor = if (isSystemInDarkTheme()) {
        Color.White
    } else {
        Color.Black
    }

    BasicTextField(
      // ..
      textStyle = LocalTextStyle.current.copy(color = textColor),
    )
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Takuya Matsuda

79543210

Date: 2025-03-29 12:06:54
Score: 1
Natty:
Report link

When you pass value directly from Parent to Child, TypeScript can't determine which variant of the union type will be received at compile time.

You can fix this by narrowing type inside Parent component.

const Parent = ({ value }: ChildProps) => {
    if (Array.isArray(value)) {
        return <Child value={value} />;
    } else {
        return <Child value={value} />;
    }
};
Reasons:
  • Has code block (-0.5):
  • Starts with a question (0.5): When you
  • Low reputation (1):
Posted by: aashish-cd

79543204

Date: 2025-03-29 12:00:53
Score: 3.5
Natty:
Report link

In my case the problem was in using EntityCommandBufferSystem. When I deleted it the problem was solved. Maybe in your case there are some deprecated stuff that was used in SystemBase?

Reasons:
  • Whitelisted phrase (-1): in your case
  • Low length (0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Lion Lun

79543194

Date: 2025-03-29 11:55:52
Score: 5.5
Natty: 5.5
Report link

as i'm working on the timmer registres for pwm on a giga r1 I'm trying to run this ino code on the arduino ide but it doesn't work. I missed someting ?

thanks :)

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: galinou

79543193

Date: 2025-03-29 11:55:52
Score: 2.5
Natty:
Report link

I faced the same issue with gorouter and PopScope, and i found solution using this https://github.com/marcglasberg/back_button_interceptor.git

Its much easier than other solution to implement

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

79543191

Date: 2025-03-29 11:53:51
Score: 0.5
Natty:
Report link

For main answer. I found a non-strictly binding way to fix it.

We just need to add a DependencyProperty for position to the DraggableContentControl .

public static readonly DependencyProperty PositionProperty =
    DependencyProperty.Register("Position", typeof(Point), typeof(DraggableContentControl), new PropertyMetadata(OnPositionPropertyChanged));

public Point Position
{
    get { return (Point)GetValue(PositionProperty); }
    set { SetValue(PositionProperty, value); }
}

private static void OnPositionPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
{
    DraggableContentControl control = d as DraggableContentControl;
    Point newValue = (Point)e.NewValue;
    Canvas.SetLeft(control, newValue.X);
    Canvas.SetTop(control, newValue.Y);
}

Further, we can simplify the method Drag_OnMouseMove to the following form:

private void Drag_OnMouseMove(object sender, MouseEventArgs e)
{
    if (!this.IsDragActive)
    {
        return;
    }

    Point currentPosition = e.GetPosition(this.ParentInputElement);

    currentPosition.Offset(-this.DragOffset.X, -this.DragOffset.Y);
    Position = currentPosition;
}

And now we bind to the Position property instead of the Canvas.Left/Top properties:

<controls:ItemsCanvas.ItemContainerStyle>
    <Style TargetType="controls:DraggableContentControl">
        <Setter Property="Position" Value="{Binding Position, Mode=TwoWay}"/>
    </Style>
</controls:ItemsCanvas.ItemContainerStyle>

Now, when we change the position from the viewmodel, our content control changes its position on the canvas, and when we change the position with the mouse, the viewmodel's position is updated as well.
At least, without this, I could change the position only through viewmodel, but nothing worked through Canvas.SetLeft/SetTop

Reasons:
  • Blacklisted phrase (1): but nothing work
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Yurii Kryvoruchko

79543189

Date: 2025-03-29 11:53:51
Score: 1
Natty:
Report link

According to this dcoumentation, you just can change the file where spring shell stores logs via the spring.shell.history.name property. The YAML equivalent would be

spring:
  shell:
    history:
      name: <YOUR/LOG/PATH.log>
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: T I M O N

79543180

Date: 2025-03-29 11:43:49
Score: 1
Natty:
Report link

I think the issue here is that GoogleBot can't crawl your sitemap.xml correctly, can you use the URL Inspection Tool (top-bar of the search-console) use the button Inspect a live URL to test whether the sitemap is index-able?

You can find the relevant instructions here:
https://support.google.com/webmasters/answer/9012289?hl=en

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: Damian

79543171

Date: 2025-03-29 11:36:47
Score: 3
Natty:
Report link

I have Apache Kraft 4.0.0 on local (Linux) trying to configure SASL_SSL scram 512.
The SSL works fine. However, the SASL_SSL plaintext or any other method gives be Failed to initiate SASL authenticator error. Hence, I remained at SSL for controller to controller and configured SASL_SSL scram 512 for broker to broker and other clients.
Don't know if this is a limitation with controller-to-controller setup for SASL_SSL. Any suesstion or assistance is appreciated! thanks!

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Blacklisted phrase (1): appreciated
  • No code block (0.5):
  • Low reputation (1):
Posted by: Dinesh Kumar L

79543164

Date: 2025-03-29 11:28:45
Score: 8 🚩
Natty:
Report link

After a few days of retrying and researching, and thanks to grawity_u1686 advice. I managed to solve the problem.

The problem is that in my AD Server, Active Directory Users and Computers > abc.local > Users. In the Account tab from the Properties of my linux user record (linux-wec), the User logon name holds the value of HTTP/linux-wec.abc.local, indicating that the principal used should be HTTP, not http. By recreating the keytab with HTTP principal, my NXLog managed to work normally.

Help appreciated with thanks.

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Blacklisted phrase (1): appreciated
  • RegEx Blacklisted phrase (3): thanks to grawity_u1686 advice
  • RegEx Blacklisted phrase (3): Help appreciated
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: KLZ Canon

79543159

Date: 2025-03-29 11:26:45
Score: 3
Natty:
Report link

In the comments under the answer from Zeroshade, li.davidm gave an insight to a solution that works, in that a normal pip installation of the packages will not work. Instead, you need to use a conda environment to have this sort of system work. At the time of writing this, the latest drivers work just fine.

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

79543158

Date: 2025-03-29 11:25:44
Score: 2
Natty:
Report link

This is because in the if statement, you check if res is "SuccessResult", which is same as checking if res is SuccessResult<dynamic, dynamic>. So you need to add the generics as you did with the switch statement

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

79543155

Date: 2025-03-29 11:24:44
Score: 0.5
Natty:
Report link
let json1 = {
      "key1": "prompt",
      "key2": "name1",
      "key3": "work1",
      "value1":  {"name": "pankaj", "work": "business"},
      "value2": "ankosh",
      "value3": "business1"
  };
  
  let json2 = {
      "group": "common_prompt",
      "key1": "prompt",
      "key2": "name",
      "key3": "work",
      "value1":  {"name": "pankaj", "work": "business"},
      "value2": "pankaj",
      "value3": "business"
  }; 
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: ankush

79543141

Date: 2025-03-29 11:08:41
Score: 2.5
Natty:
Report link

Having a similar problem in Fedora 41 with .NET 8 as I described here

I have resolved it by adding LC_MESSAGES=C to my /etc/locale.conf

LANG=en_US.UTF-8
LC_MESSAGES=C

As a preliminary test (before changing the locale.conf), I did

giulio@myhome:~$ .dotnet/dotnet --version
stack smashing detected ***: terminated
Aborted (core dumped)
giulio@myhome:~$ export LC_MESSAGES=C
giulio@myhome:~$ .dotnet/dotnet --version
8.0.407
Reasons:
  • Has code block (-0.5):
  • Me too answer (2.5): Having a similar problem
  • Low reputation (0.5):
Posted by: Giulio

79543112

Date: 2025-03-29 10:44:37
Score: 2
Natty:
Report link

It is far simpler than using permission boundaries. Simply add sts:AssumeRole to the list of denied actions and your role will not be able to assume other roles at all. Permission boundaries can give you troubles if you are not 100% sure on how to use them.

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

79543105

Date: 2025-03-29 10:37:36
Score: 1.5
Natty:
Report link

Take a look here:

https://docs.djangoproject.com/en/5.2/topics/testing/tools/#django.test.SimpleTestCase.databases

There is a comment in there about overriding settings...

SimpleTestCase and its subclasses (e.g. TestCase, …) rely on setUpClass() and tearDownClass() to perform some class-wide initialization (e.g. overriding settings).

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

79543104

Date: 2025-03-29 10:34:35
Score: 0.5
Natty:
Report link

Take a look at this section:

https://docs.djangoproject.com/en/5.2/topics/testing/tools/#django.test.SimpleTestCase.databases

There is a comment in there about overriding settings...

SimpleTestCase and its subclasses (e.g. TestCase, …) rely on setUpClass() and tearDownClass() to perform some class-wide initialization (e.g. overriding settings).

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

79543100

Date: 2025-03-29 10:28:34
Score: 1.5
Natty:
Report link
if reply in ['a', 'b', 'c', 'd']:
        reply = {'a': 1, 'b': 2, 'c': 3, 'd': 4}[reply]
    else:
        reply = int(reply)  # Convert numeric input to integer
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: shivam ojha

79543097

Date: 2025-03-29 10:26:34
Score: 0.5
Natty:
Report link

HTML:

<table id="mytable">
  <thead>
    <tr>
      <th>Header</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>...</td>
    </tr>
  </tbody>
</table>

JavaScript:

document.getElementById("mytable").tBodies[0].innerHTML = '';

Or loop over tBodies, if you have more than one.

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

79543093

Date: 2025-03-29 10:22:33
Score: 0.5
Natty:
Report link

The problem is your middleware is called before authorisation:

    Route::get('/log'...)->middleware('view-logs');

will not work, while this will

Route::group(['middleware' => [auth:api]], function(){
    Route::get('/log'...)->middleware('view-logs');

})

Why it works?

With auth:api or even auth middleware the logged in user appears, while without this middleware you don't have logged in user and checking for Auth::check() will always be false. That is expected behaviour.

Can it be done even better?

Yes, if you are using spatie/laravel-permissions, and ->hasRole() make me think you are. Then you can get rid of self written middleware and use this.

Route::get('/log...', [...Controller::class, 'index'])->middleware('role:admin');
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Oleg

79543089

Date: 2025-03-29 10:14:31
Score: 2.5
Natty:
Report link

Yes, Text extraction tools with image filtering*: Some text extraction tools, such as Tesseract-OCR, Adobe Acrobat, or Readiris, have built-in image filtering capabilities. These tools can automatically detect and ignore images, allowing you to extract text more efficiently.

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

79543086

Date: 2025-03-29 10:11:31
Score: 1.5
Natty:
Report link

Create Directory.build.props with the following content:

<Project>
   <PropertyGroup>
        <NuGetAudit>false</NuGetAudit>
    </PropertyGroup>
</Project>

This file is searched by msbuild upward from project/solution dir once, so if you already have one then just modify it as above.

Source: https://improveandrepeat.com/2024/11/how-to-disable-the-nuget-audit-check-in-visual-studio-17-12/

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

79543081

Date: 2025-03-29 10:08:30
Score: 0.5
Natty:
Report link

uv is a powerful tool for managing dependencies and other package development tasks (e.g. adding a package to a project with uv add):
https://github.com/astral-sh/uv
This is similar to poetry as recommended in the other answer but is more heavily optimized for performance and is also more standards compliant.

For other project configuration tasks such as configuring a test suite, linter tools and the like, consider using usethis for Python:
https://github.com/nathanjmcdougall/usethis-python
e.g. usethis tool pytest.

Disclaimer: I am the author of the usethis Python package.

Reasons:
  • Has code block (-0.5):
  • Starts with a question (0.5): is a
  • Low reputation (0.5):
Posted by: nathan.j.mcdougall

79543079

Date: 2025-03-29 10:03:29
Score: 0.5
Natty:
Report link

It doesn't look like your C# code is actually handling the event. In c# you have to explicitly link event to event handler, its not automatic based on function name.

So something like

cmdSeekPrev.Click += cmdSeekPrev_Click(object sender, EventArgs e);


Or select the event handler in the form designer
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Dave

79543075

Date: 2025-03-29 10:00:29
Score: 3
Natty:
Report link

Try to delete/backup and remove the C:\Users\USER.gradle directory as well

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

79543070

Date: 2025-03-29 09:58:28
Score: 2.5
Natty:
Report link

error: refname refs/heads/HEAD not found

fatal: Branch rename failed

$ git checkout -b main

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

79543069

Date: 2025-03-29 09:57:28
Score: 2
Natty:
Report link

Have a read of this Microsoft article. I believe your issue is related to the update listed.

I think the issue is actually the USB driver

https://learn.microsoft.com/en-us/windows/release-health/status-windows-10-22h2#usb-printers-might-print-random-text-with-the-january-2025-preview-update

UPDATE: This (USB Printing) issue was resolved by Windows updates released March 25, 2025 (KB5053657), and later.

https://support.microsoft.com/en-us/topic/march-25-2025-kb5053657-os-builds-22621-5126-and-22631-5126-preview-87a95447-6e12-4cd6-a7cf-ef525b8a489f

I hope this helps with the issue you are having.

Reasons:
  • Whitelisted phrase (-1): hope this helps
  • Probably link only (1):
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: user612292

79543067

Date: 2025-03-29 09:57:28
Score: 2
Natty:
Report link

Of course you can store in a single byte. Just use the binary values ie: 2^0 for 1 selected, 2^1 for 2 selected, 2^2 for 3 selected, 2^3 for 4 selected. But I do agree with Ken White, its important to think about how you want to use the data, in the end storage space is unlikely to be the critical factor!

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

79543054

Date: 2025-03-29 09:45:26
Score: 1.5
Natty:
Report link
Use it like this in Maven (Intellij Idea)
<dependency>
    <groupId>com.mysql</groupId>
    <artifactId>mysql-connector-j</artifactId>
    <scope>runtime</scope>
</dependency>
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Erik

79543049

Date: 2025-03-29 09:42:25
Score: 1
Natty:
Report link

While @Mestkon is correct that it is not possible to arbitrarily populate std::filesystem:directory_entry, I did find a way to wrap it in a way which incurs very little compile time overhead and zero runtime overhead:

class unmocked {};

template <typename T>
class mocked : unmocked {};

template <typename T>
using mockable = std::conditional_t<
    std::is_base_of_v<unmocked, mocked<T>>,
    T,
    mocked<T>
>;

#ifdef UNIT_TEST
template <typename T>
class mocked<std::filesystem::directory_entry> {
   // Match T constructors, functions, operators
};
#endif

In production, without any specialization, mockable<T> == T, so performance is not impacted. In UT, we can provide simple backing fields for every getter, or forward them to a gmock object. Note that MOCK_METHOD makes an object non-copyable, so you might need to store a reference or smart pointer to the mock, depending on your needs.

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @Mestkon
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Dominik Kaszewski

79543048

Date: 2025-03-29 09:40:25
Score: 1
Natty:
Report link

Just launch local web server with serve

npm install --global serve

Go to taget directory

cd /my-dir-on-mac

and run serve

serve

Now http://192.168.0.16:3000 url available across all your devices in your local network

local serve

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

79543037

Date: 2025-03-29 09:29:23
Score: 0.5
Natty:
Report link

I tried this:

And it compiled, and didn't throw an exception:
Could you please replicate your issue, as a unit test case?

using iTextSharp.text.pdf;
using System.Net;

public class PdfStreamsHandler
{
    private string url1 = "https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf";
    private string url2 = "https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf";

    List<string> psURLs = new List<string>() {
    "https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf",
    "https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf",
    "https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf"
    };

    public MemoryStream MergePdfs()
    {
        MemoryStream finalStream = new MemoryStream();
        PdfCopyFields copy = new PdfCopyFields(finalStream);

        var ms1 = new MemoryStream();
        ConvertToStream(url1, ms1);
        ms1.Position = 0;
        copy.AddDocument(new PdfReader(ms1));
        ms1.Dispose();

        var ms2 = new MemoryStream();
        ConvertToStream(url2, ms2);
        ms2.Position = 0;
        copy.AddDocument(new PdfReader(ms2));
        ms2.Dispose();

        foreach (string s in psURLs)
        {
            var ms3 = new MemoryStream();
            ConvertToStream(s, ms3);
            ms3.Position = 0;
            copy.AddDocument(new PdfReader(ms3));
            ms3.Dispose();
        }

        copy.Close();

        return finalStream;
    }

    private void ConvertToStream(string fileUrl, Stream stream)
    {
        HttpWebRequest request = (HttpWebRequest)WebRequest.Create(fileUrl);
        HttpWebResponse response = (HttpWebResponse)request.GetResponse();

        try
        {
            Stream response_stream = response.GetResponseStream();

            response_stream.CopyTo(stream, 4096);
        }
        finally
        {
            response.Close();
        }
    }
}
public class UnitTest
{
    [Fact]
    public void TestAnswer2()
    {
        PdfStreamsHandler pdfStreamHandler = new PdfStreamsHandler();
        MemoryStream actualResult = pdfStreamHandler.MergePdfs();
        Assert.NotNull(actualResult);
    }
}
Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • Ends in question mark (2):
Posted by: Morten Bork

79543032

Date: 2025-03-29 09:24:22
Score: 2
Natty:
Report link

BeamNG.drive es un juego de simulación de conducción de gran realismo desarrollado por BeamNG. Conocido por su física de vehículos increíblemente detallada y su mecánica de destrucción, BeamNG.drive ofrece a los jugadores una experiencia única donde pueden chocar, competir y experimentar con coches en un entorno de mundo abierto.

Reasons:
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: ádas dgsd