79511759

Date: 2025-03-15 20:55:10
Score: 2
Natty:
Report link

Found the answer, courtesy of GitHub Copilot:

To execute custom logic before navigation, you can wrap the next/link component with a custom component and handle the logic within that component.

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

79511755

Date: 2025-03-15 20:52:10
Score: 1.5
Natty:
Report link

Once you use MediaQuery.of(context).devicePixelRatio or View.of(context).devicePixelRatio,

the size will change as the device size or pixelRatio changes.

Use a constant value like just 160 to have a size of 160 across all screen sizes

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

79511754

Date: 2025-03-15 20:51:07
Score: 7 🚩
Natty: 5.5
Report link

I'm not giving an answer, but rather trying to get this to work for me. I put in the Service, Cluster, and DesiredCount, but nothing happens that I can see. I don't know where to go to see any kind of log to tell me whether or not it ran and/or what the error might be.

Any help would be appreciated.

Thanks.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (1): appreciated
  • Blacklisted phrase (1): Any help
  • RegEx Blacklisted phrase (3): Any help would be appreciated
  • No code block (0.5):
  • Low reputation (1):
Posted by: David

79511746

Date: 2025-03-15 20:45:06
Score: 1.5
Natty:
Report link

I found that explanation really helpful and solved a similar issue for me

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

79511743

Date: 2025-03-15 20:42:03
Score: 7.5 🚩
Natty: 4.5
Report link

Anyone found a workaround in this except using list for recursive property?

Reasons:
  • Blacklisted phrase (2): Anyone found
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: st.nasos

79511742

Date: 2025-03-15 20:39:03
Score: 0.5
Natty:
Report link

There are a few reasons why these differences might occur:

To ensure consistency across browsers, using a CSS reset like Normalize.css can help override these default behaviors and create a more uniform appearance.

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

79511740

Date: 2025-03-15 20:37:02
Score: 1
Natty:
Report link

Late to the party, but one obvious case is selections -- dragging from one place to another in a displayed document is a range. That is, unless you place both end just exactly right to get a whole element. So every browser and word processor has had to implement ranges pretty much from the beginning. They just called it a "selection" instead. We all use them countless times every day.

Reasons:
  • No code block (0.5):
  • Single line (0.5):
Posted by: TextGeek

79511736

Date: 2025-03-15 20:35:02
Score: 2.5
Natty:
Report link

Downgrading the node version from 22 to 14 worked for me

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

79511719

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

You'd need to redo the compile shader step in the tutorial: https://vulkan-tutorial.com/Drawing_a_triangle/Graphics_pipeline_basics/Shader_modules

run the compile.bat file in your Vulkan/shaders directory.

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

79511717

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

15 Years later....

Using solutions mentioned by other here (Thanks!) , I ended up using the following code.
I need events to fire only when a tab is clicked.

I have DataGrids in Tabs and selecting any Row would fire the TabControl.SelectionChanged event.

Using this in the TabControl_SelectionChanged event solved my problem.

I added the option to switch by TabItem.Name instead of its SelectedIndex in case I move tabs around in development later.

if (e.OriginalSource is TabControl)
 {
     var tabControl = e.OriginalSource as TabControl;

     if (tabControl.Name == "<YourTabControlName>")
     {
         switch ((tabControl.SelectedItem as TabItem).Name)
         {
             case "First_Tab": //First Tabs Name
                     //DOWORK
                 break;
             case "Second_Tab": //Second Tabs Name
                 //DOWORK
                 break;    
             default:
                 break;
         }
     }
 }
Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (0.5): I need
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: SiRaDuDe

79511716

Date: 2025-03-15 20:18:58
Score: 2.5
Natty:
Report link

Run flutter clean and then flutter get.

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

79511712

Date: 2025-03-15 20:15:58
Score: 1
Natty:
Report link

By extent, should I check if the pointer to the device tree provided to the kernel is NULL?

I don't think the RISC-V specification per se specifies which addresses might be valid to access when the kernel boots. This information must be hardcoded into the kernel, or detected by probing the hardware or BIOS somehow, or provided by the device tree itself. In that last case it is impossible to sanitize the device tree address, so don't. In the other cases I don't think it's worth the effort; I would simply allow whatever happens when you access invalid memory to happen.

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

79511709

Date: 2025-03-15 20:14:58
Score: 1
Natty:
Report link

To avoid errors, you can use the flutter fire to setup firebase for project. The instructions on how to use flutterfire is given here

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

79511707

Date: 2025-03-15 20:11:57
Score: 5.5
Natty:
Report link

https://www.checkout-ds24.com/redir/599344/Cashif0123/

kindly convert it into iframe

[email protected]

whtsapp +923350217783

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

79511692

Date: 2025-03-15 19:57:54
Score: 3
Natty:
Report link

This was really troubled thing to find, but a simple C++ extension re-install would resolve.

I tried the following ways :

Still getting the same error, so - uninstall all C++ related extensions from Microsoft, and install them again or only the C++ Extension from Microsoft.

enter image description here

There should be some extension problem in my case

Reasons:
  • No code block (0.5):
  • Me too answer (2.5): getting the same error
Posted by: Susobhan Das

79511688

Date: 2025-03-15 19:51:53
Score: 0.5
Natty:
Report link

I just investigated some more myself and found this solution making use of the walrus operator:

import numpy as np

a = np.arange(10)

dim_a, dim_total = 2, 4

(shape := [1] * dim_total)[dim_a] = -1
np.reshape(a, shape)

I like that it's very compact, but the := is still not very commonly used.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
Posted by: Axel Donath

79511687

Date: 2025-03-15 19:50:52
Score: 2
Natty:
Report link
% echo "your string literal here" | wc -c
      25
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Larry Breyer

79511666

Date: 2025-03-15 19:29:49
Score: 3.5
Natty:
Report link

nice answer and for more information of NEET to visit shrinfda.in

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

79511657

Date: 2025-03-15 19:25:48
Score: 2
Natty:
Report link

I found that i needed to mention the font style that i have added previously on this

doc.addFileToVFS("Amiri-Regular.ttf", arabicFont);
doc.addFont("Amiri-Regular.ttf", "Amiri", "normal");
doc.setFont("Amiri");

so my headstyles should look like this

headStyles: { font: "Amiri", fontStyle: "normal" }
Reasons:
  • Blacklisted phrase (0.5): i need
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Ak98

79511650

Date: 2025-03-15 19:22:47
Score: 2
Natty:
Report link

This is a window pc and the file structure in the search bar is forward slash but in the Index of section in there is Backward slash.
enter image description here

Windows actually supports both types of slashes in many contexts, though backslashes are the standard convention. This mixed use of slashes can sometimes be confusing, but the system generally understands both formats depending on the context.

  1. The search bar might be showing a web URL format (which uses forward slashes)

  2. The "Index of" section is showing the actual Windows file path format (which uses backslashes)

Reasons:
  • Blacklisted phrase (1): enter image description here
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: HJoshi280102

79511643

Date: 2025-03-15 19:16:46
Score: 1.5
Natty:
Report link

Use [ngClass] instead of *ngClass.

<ol>
  <li [ngClass]="{'active': step === 'step1'}" (click)="step='step1'">Step1</li>
</ol>
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Andrew Chaika

79511637

Date: 2025-03-15 19:09:45
Score: 0.5
Natty:
Report link

I've come back to this thread a lot and used adaptations of @Adib's code several times, but I recently got a version that extends functionality to be more complete, as I believe ColumnTransformer and/or Pipeline will throw an error if you try to use get_feature_names_out().

from sklearn.base import BaseEstimator, TransformerMixin
import numpy as np
import pandas as pd
from scipy import sparse

class MultiHotEncoder(BaseEstimator, TransformerMixin):
    """
    A custom transformer that encodes columns containing lists of categorical values
    into a multi-hot encoded format, compatible with ColumnTransformer.
    
    Parameters:
    -----------
    classes : list or None, default=None
        List of all possible classes. If None, classes will be determined from the data.
    sparse_output : bool, default=False
        If True, return a sparse matrix, otherwise return a dense array.
    """
    def __init__(self, classes=None, sparse_output=False):
        self.classes = classes
        self.sparse_output = sparse_output
        
    def fit(self, X, y=None):
        """
        Fit the transformer by determining all possible classes.
        
        Parameters:
        -----------
        X : array-like of shape (n_samples, n_features)
            Columns containing lists of values.
        
        Returns:
        --------
        self : object
            Returns self.
        """
        # Handle DataFrame input properly
        if isinstance(X, pd.DataFrame):
            X_processed = X.values
        else:
            X_processed = np.asarray(X)
            
        # Collect all unique classes
        if self.classes is None:
            unique_classes = set()
            for col in X_processed.T:
                for row in col:
                    if row is not None and hasattr(row, '__iter__') and not isinstance(row, (str, bytes)):
                        unique_classes.update(row)
            self.classes_ = sorted(list(unique_classes))
        else:
            self.classes_ = sorted(list(self.classes))
            
        # Create a dictionary for fast lookup
        self.class_dict_ = {cls: i for i, cls in enumerate(self.classes_)}
        return self
    
    def transform(self, X):
        """
        Transform lists to multi-hot encoding.
        
        Parameters:
        -----------
        X : array-like of shape (n_samples, n_features)
            Columns containing lists of values.
        
        Returns:
        --------
        X_transformed : array of shape (n_samples, n_features * n_classes)
            Transformed array with multi-hot encoding.
        """
        # Handle DataFrame input properly
        if isinstance(X, pd.DataFrame):
            X_processed = X.values
        else:
            X_processed = np.asarray(X)
            
        n_samples, n_features = X_processed.shape
        n_classes = len(self.classes_)
        
        # Initialize the output array
        if self.sparse_output:
            rows = []
            cols = []
            for j, col in enumerate(X_processed.T):
                for i, row in enumerate(col):
                    if row is None:
                        continue
                    if not hasattr(row, '__iter__') or isinstance(row, (str, bytes)):
                        continue
                    for item in row:
                        if item in self.class_dict_:
                            rows.append(i)
                            cols.append(j * n_classes + self.class_dict_[item])
            data = np.ones(len(rows), dtype=int)
            result = sparse.csr_matrix((data, (rows, cols)), shape=(n_samples, n_features * n_classes))
        else:
            result = np.zeros((n_samples, n_features * n_classes), dtype=int)
            for j, col in enumerate(X_processed.T):
                for i, row in enumerate(col):
                    if row is None:
                        continue
                    if not hasattr(row, '__iter__') or isinstance(row, (str, bytes)):
                        continue
                    for item in row:
                        if item in self.class_dict_:
                            result[i, j * n_classes + self.class_dict_[item]] = 1
        
        return result
    
    def fit_transform(self, X, y=None):
        return self.fit(X).transform(X)
    
    def get_feature_names_out(self, input_features=None):
        """
        Get output feature names for transformation.
        
        Parameters:
        -----------
        input_features : array-like of str or None, default=None
            Input features. Used as a prefix for output feature names.
        
        Returns:
        --------
        feature_names_out : ndarray of str objects
            Array of output feature names.
        """
        if input_features is None:
            input_features = [""]
        
        feature_names_out = []
        for feature in input_features:
            feature_names_out.extend([f"{feature}_{cls}" for cls in self.classes_])
        
        return np.array(feature_names_out)
Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @Adib's
  • Low reputation (1):
Posted by: CarlosCoggtana

79511633

Date: 2025-03-15 19:06:44
Score: 3
Natty:
Report link
header 1 header 2
cell 1 cell 2
cell 3 cell 4
Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: user29978939

79511630

Date: 2025-03-15 19:05:43
Score: 5.5
Natty:
Report link

олоecwwecwecwecwewec weccewcwecwecwecwec

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Has no white space (0.5):
  • Single line (0.5):
  • Low entropy (1):
  • Low reputation (1):
Posted by: Иван

79511628

Date: 2025-03-15 19:04:43
Score: 3.5
Natty:
Report link

You should give uv a chance: https://docs.astral.sh/uv/guides/integration/docker/. It’s very actively developed and has very good documentation

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

79511610

Date: 2025-03-15 18:51:40
Score: 3.5
Natty:
Report link

Peek into the source here; I think you'll find what you're looking for:

https://github.com/ProfJski/ArtColors

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

79511603

Date: 2025-03-15 18:42:39
Score: 2.5
Natty:
Report link

I have the same problem.

try this:

npm update eslint @typescript-eslint/eslint-plugin @typescript-eslint/parser

and then

npm cache clean --force && rm -rf node_modules/ && npm i
Reasons:
  • Blacklisted phrase (1): I have the same problem
  • Whitelisted phrase (-2): try this:
  • Low length (1):
  • Has code block (-0.5):
  • Me too answer (2.5): I have the same problem
  • Low reputation (0.5):
Posted by: Nikolay Gromov

79511596

Date: 2025-03-15 18:33:37
Score: 0.5
Natty:
Report link

The problem with this code was that in the screen composable I create the viewModel with the class constructor, like so:

@Composable
fun CameraScreen(
    modifier: Modifier = Modifier,
    lifecycleOwner: LifecycleOwner = LocalLifecycleOwner.current,
    cameraViewModel: CameraViewModel = CameraViewModel(),
)

Which doesn't make it part of the composition, nor does it save its state. To solve this I just changed the assignment of the default value as follows:

@Composable
fun CameraScreen(
    modifier: Modifier = Modifier,
    lifecycleOwner: LifecycleOwner = LocalLifecycleOwner.current,
    cameraViewModel: CameraViewModel = viewModel()
)

And now everything works correctly!

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

79511590

Date: 2025-03-15 18:28:34
Score: 7 🚩
Natty: 6
Report link

in python 3.9.2 same error, why?

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

79511583

Date: 2025-03-15 18:22:32
Score: 1
Natty:
Report link

In my case working add to dependencies:

dependencies:
  flutter_plugin_android_lifecycle: ^2.0.27
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Николай Невзоров

79511575

Date: 2025-03-15 18:13:30
Score: 2
Natty:
Report link

With Propshaft, this is handled by the resolver.

Rails.application.assets.resolver.resolve(logical_path).present?

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Self-answer (0.5):
  • High reputation (-1):
Posted by: Timothy Alexis Vass

79511572

Date: 2025-03-15 18:11:30
Score: 1
Natty:
Report link

I examined the target website you're scraping, and since the data isn't loaded via a visible API, your current method is necessary. However, to improve efficiency and speed, consider using an asynchronous approach. Here’s how:

  1. Use Scrapy – It's optimized for fast and scalable scraping.
  2. Process in Batches – Instead of scraping pages one by one, fetch 100 at a time to reduce overhead.
Reasons:
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Adel Alaa

79511569

Date: 2025-03-15 18:10:30
Score: 1.5
Natty:
Report link

In Python, the convention is to place version bookkeeping (such as __version__ and __author__) before imports. This is a widely followed practice, though it's not strictly required by the language itself.

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

79511567

Date: 2025-03-15 18:08:29
Score: 1.5
Natty:
Report link

from ibapi.utils import floatMaxString,decimalMaxString,intMaxString
If you can't import it, please reinstall IBAPI right

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

79511565

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

A bit more messy, but with less boilerplate is just to unpack the Literal. e.g.:

MyType = Literal["a", "b", "c"]
A, B, C = get_args(MyType)
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Dylan Madisetti

79511564

Date: 2025-03-15 18:03:28
Score: 1.5
Natty:
Report link

Below is what I did, thanks to @classikh! It fixed my issue:

    // Define your form.
  const form = useForm<z.infer<typeof formSchema>>({
    resolver: zodResolver(formSchema), 
    defaultValues: {
      email: '', 
    },
    values: {
      email: user?.email ?? '', 
    }
  })

In above code 'user' is coming from my hook which gets populated when user is fetched.

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Has code block (-0.5):
  • User mentioned (1): @classikh
  • Low reputation (0.5):
Posted by: Frontend Backend Bookend

79511559

Date: 2025-03-15 18:00:27
Score: 1
Natty:
Report link

After using wwwizer.com I was able to redirect the domain properly. I removed the GoDaddy forward configuration, and opted to use a new A record into the DNS to redirect:

Type Name Data
A @ 174.129.25.170

Take a lot at wwwizer for more information.

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

79511554

Date: 2025-03-15 17:57:27
Score: 3.5
Natty:
Report link

enter image description here

On project tree (to the right) one needs to expand Android64 target, and there are several folders inside. Configuration, Application Store means aab, Development means apk

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

79511547

Date: 2025-03-15 17:53:24
Score: 7.5 🚩
Natty: 5
Report link

Me pasaba lo mismo y probe todo. Al final lo conseguí dandole una patada a la cpu y desactivando el plugin de wordpress gosmtp y go smtp pro en ese orden y volviendo a activarlos en igual orden. luego he dejado clickado las dos opciones de force from email y force from name y ya todo ok. gracias a todos.

Reasons:
  • Blacklisted phrase (2): gracias
  • RegEx Blacklisted phrase (2.5): mismo
  • Low length (0.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: user29978864

79511534

Date: 2025-03-15 17:48:22
Score: 2
Natty:
Report link

For me, it was called on the wrong thread. This will help:

            await InvokeAsync(() => NavigationManager.NavigateTo("/chat"));
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Mathias

79511532

Date: 2025-03-15 17:46:22
Score: 6.5
Natty: 7.5
Report link

What is the integral of the function f(x) = sin 2x?

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): What is the in
  • Low reputation (1):
Posted by: Christ Jesus

79511531

Date: 2025-03-15 17:45:21
Score: 2
Natty:
Report link

Sorry about the broken link, and I appreciate you pointing it out. Thanks for sharing your project structure—that definitely helps in troubleshooting.

Since you already tried 'ENGINE': 'custom_backend.base' and got an error, here are a few things to double-check:

If you are still stuck, let me know what error you are seeing now—I will be happy to help!

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (2): Thanks for sharing
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Jack D

79511523

Date: 2025-03-15 17:42:21
Score: 1
Natty:
Report link
n=5 
for i in range(n,0,-1):
    for j in range(n-i):
        print(" ",end="")
    for j in range(2*i-1):
        if j == 0 or i == n or j == 2*i-2:
            print("*",end="")
        else:
            print(" ",end="")
    print()
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Krishna Vamshi Pasupula

79511497

Date: 2025-03-15 17:18:16
Score: 1
Natty:
Report link

The programming needs to be inside the PDF (Has always been that way for almost 3 decades)

Then the button sends the data as designed by you, to your server.

So here I am E.T. and phoning home.

This was done in seconds by adding a GUI button as text.

For a simple method see my previous answer https://stackoverflow.com/a/78212967/10802527

enter image description here

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Probably link only (1):
  • Low length (0.5):
  • No code block (0.5):
  • High reputation (-2):
Posted by: K J

79511488

Date: 2025-03-15 17:13:15
Score: 2
Natty:
Report link

There's an issue with building locally with expo.

I used npx expo prebuild to generate the ios folder and then followed the instructions here:
https://reactnative.dev/docs/publishing-to-app-store

This work well!

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

79511486

Date: 2025-03-15 17:12:15
Score: 1
Natty:
Report link

I delete a folder from the path
c:\flutter
and install Flutter, it works for me.

Reasons:
  • Whitelisted phrase (-1): works for me
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: RAJESH RAJU

79511478

Date: 2025-03-15 17:10:14
Score: 3
Natty:
Report link

Create Football Scores Website

Un site Web de foot scor

I'll help you create a football (soccer) scores website. I'll set up a React application with Vite, including Tailwind CSS for styling, and create a basic structure for displaying football scores.

Create Football Scores Website

I've created a football scores website with the following features:

A clean, modern design using Tailwind CSS Match cards displaying: Team names Scores Match status (LIVE, SCHEDULED, or FINISHED) League name Match time Responsive layout that adapts to different screen sizes Color-coded status indicators Sample match data (which you can later replace with real API data) The development server is now running. You'll see a responsive grid of match cards with different statuses and scores. The design is mobile-friendly and includes all the essential information a football scores website should have.

Would you like to add any specific features or make any adjustments to the current design?

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

79511477

Date: 2025-03-15 17:10:14
Score: 0.5
Natty:
Report link

SOLVED: By changing file: "Home.css" -> "home.css". No idea why making it lower-case magically worked. Many of my other *.css files use Pascal Casing, and they are imported just fine. Hope this helps somebody else!

Reasons:
  • Whitelisted phrase (-1): Hope this helps
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Tristan Miller

79511461

Date: 2025-03-15 17:00:13
Score: 0.5
Natty:
Report link

Got back from 8hours driving truck today and sat down to start coding VSCODE says "You can't use this version of the application, you have macOS 10.15.7. The application requires 11.0 or later"

2 Questions

  1. What ***kw*t at Microsoft thinks it's a good idea to auto upgrade someones dev environments to a version that is incompatible with the OS? Don't know but if I find out I'll throttle the c&&t

  2. Is there a roll back utility that allows me to keep all my installed tools? NO

HOW TO FIX - w/ EXTENSIONS INTACT

To fix Visual Studio Code (VSCode) Catalina 10.15 upgrades to macOS 11.0

Download v1.97 available Here:

https://code.visualstudio.com/download# (says 10.15+ but it's **incompatible**)

https://visual-studio-code.en.uptodown.com/mac/versions (1.97.1 - works)

I renamed Visual Studio Code.app to Visual Studio Code osx11.0.app (DID NOT DELETE IT)

Unzipped the download & dragged it over into the Applications folder.

Ran it. ALL EXTENSION IN TACT - TFFT!!

Turn off AUTOF***DATE:

Code > Preferences > Setting > search "update mode" > set to none > restart VSCode

Afte a small heart attack and a minor meltdown . . back up and running : )

For future REF: Theres a Setting Synch Facility that will synch to GitHub will update when worked it out.

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

79511447

Date: 2025-03-15 16:45:10
Score: 1.5
Natty:
Report link

As the other answer suggests, this error is due to a missing DLL file, likely from a plugin. But you do not need to enable the plugin by default. Simply adding it under Plugins under your .uproject file is enough.

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

79511428

Date: 2025-03-15 16:28:07
Score: 1
Natty:
Report link

Executing the SQL command through a cursor is a way that allows you to change arraysize .

The dummy_gen_function can be modified

conn = await session.connection()

cursor = conn.connection.cursor()
cursor.arraysize = 1000
 
result = cursor.execute("xxxxxx")
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: suraj

79511423

Date: 2025-03-15 16:26:06
Score: 2
Natty:
Report link

I think you want temp_p_num = p_num inside the for p_num loop and the test temp_p_num == boxes[p_num] should be p_num == boxes[temp_p_num]. IOW The prisoner p_num opens a box with his number in it

Thanks to the comment from Martin Brown, that answered it and it works now as expected!

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: TJBHobbys

79511420

Date: 2025-03-15 16:24:06
Score: 3
Natty:
Report link

I'm the maintainer of category encoders. Thanks for reporting this issue. There was a problem in the library, I've fixed it now in version 2.8.1

Also thanks to @Ben for forwarding the issue to the repository

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (0.5): thanks
  • Low length (0.5):
  • No code block (0.5):
  • User mentioned (1): @Ben
Posted by: Paul

79511412

Date: 2025-03-15 16:18:05
Score: 3.5
Natty:
Report link

The problem stemmed from a third-party clustering library, which removes markers that fall outside the visible map area, thereby preventing deselection from functioning correctly.

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

79511406

Date: 2025-03-15 16:13:04
Score: 1
Natty:
Report link

You should use -k instead of -n.
The -k flag filters the output to show only entries that have the specified property key.

The command must be :

ioreg -c IOPlatformExpertDevice -k IOPlatformUUID

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

79511405

Date: 2025-03-15 16:12:04
Score: 0.5
Natty:
Report link

For your questions "can this be done in Excel", I believe the short answer is no. There is not a native translation service there, as you have noted. Moving that much data in/out piecemeal is obviously not reasonable.

Excel Power Query won't let you call a DLL or external code unless you write your own connector.

If you're going to be doing this often, then maybe it is worth considering writing a connector for Power Query (https://learn.microsoft.com/en-us/power-query/install-sdk) or an Excel Add-In that completes this step.

PowerBI is for visualisation and reporting. It does include some translation tools. If you're just interested in translating a large volume of structured data, however, BI is probably not the right tool.

Especially if this is a one-off task, I suggest you check the built-in GOOGLETRANSLATE() function in Google Sheets: https://support.google.com/docs/answer/3093331?hl=en . If you actually need to produce an Excel file or BI presentation afterward, you can export the translated data back to Excel and proceed.

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

79511401

Date: 2025-03-15 16:10:03
Score: 2
Natty:
Report link

Based on the comments it looks like @dr.null's suggestion of setting AutoScaleMode to Dpi on your Form will fix your issue.

form properties

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

79511388

Date: 2025-03-15 15:59:02
Score: 2.5
Natty:
Report link

for those using new ionic with react & vite -- make sure to use relative url paths; as this is what fix it for me after trying to use absolute paths

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

79511387

Date: 2025-03-15 15:59:01
Score: 4.5
Natty:
Report link

Checkout this repository which is a port of the famous Microsoft eshopOnContainers project. https://github.com/harshaghanta/springboot-eshopOnContainers

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

79511382

Date: 2025-03-15 15:56:00
Score: 5.5
Natty: 6.5
Report link

enter image description here

enter image description here

And I need it to be next to each other and not below each other

Reasons:
  • Blacklisted phrase (0.5): I need
  • Blacklisted phrase (1): enter image description here
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Pardu baak

79511380

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

Build version: 5.4.56 Build date: 2023-12-19 12:36:30 Current date: 2025-03-15 18:47:02 Device: Samsung SM-A346E

Stack trace:
java.lang.UnsatisfiedLinkError: No implementation found for void com.mojang.minecraftpe.NetworkMonitor.nativeUpdateNetworkStatus(boolean, boolean, boolean) (tried Java_com_mojang_minecraftpe_NetworkMonitor_nativeUpdateNetworkStatus and Java_com_mojang_minecraftpe_NetworkMonitor_nativeUpdateNetworkStatus__ZZZ) - is the library loaded, e.g. System.loadLibrary? at com.mojang.minecraftpe.NetworkMonitor.nativeUpdateNetworkStatus(Native Method) at com.mojang.minecraftpe.NetworkMonitor.setHasNetworkType(Unknown Source:63) at com.mojang.minecraftpe.NetworkMonitor.access$100(Unknown Source:0) at com.mojang.minecraftpe.NetworkMonitor$1.onAvailable(Unknown Source:26) at android.net.ConnectivityManager$NetworkCallback.onAvailable(ConnectivityManager.java:4184) at android.net.ConnectivityManager$NetworkCallback.onAvailable(ConnectivityManager.java:4154) at android.net.ConnectivityManager$CallbackHandler.handleMessage(ConnectivityManager.java:4607) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loopOnce(Looper.java:230) at android.os.Looper.loop(Looper.java:319) at android.os.HandlerThread.run(HandlerThread.java:67)Build version: 5.4.56 Build date: 2023-12-19 12:36:30 Current date: 2025-03-15 18:47:02 Device: Samsung SM-A346E

Stack trace:
java.lang.UnsatisfiedLinkError: No implementation found for void com.mojang.minecraftpe.NetworkMonitor.nativeUpdateNetworkStatus(boolean, boolean, boolean) (tried Java_com_mojang_minecraftpe_NetworkMonitor_nativeUpdateNetworkStatus and Java_com_mojang_minecraftpe_NetworkMonitor_nativeUpdateNetworkStatus__ZZZ) - is the library loaded, e.g. System.loadLibrary? at com.mojang.minecraftpe.NetworkMonitor.nativeUpdateNetworkStatus(Native Method) at com.mojang.minecraftpe.NetworkMonitor.setHasNetworkType(Unknown Source:63) at com.mojang.minecraftpe.NetworkMonitor.access$100(Unknown Source:0) at com.mojang.minecraftpe.NetworkMonitor$1.onAvailable(Unknown Source:26) at android.net.ConnectivityManager$NetworkCallback.onAvailable(ConnectivityManager.java:4184) at android.net.ConnectivityManager$NetworkCallback.onAvailable(ConnectivityManager.java:4154) at android.net.ConnectivityManager$CallbackHandler.handleMessage(ConnectivityManager.java:4607) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loopOnce(Looper.java:230) at android.os.Looper.loop(Looper.java:319) at android.os.HandlerThread.run(HandlerThread.java:67)

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

79511373

Date: 2025-03-15 15:50:59
Score: 0.5
Natty:
Report link

I agree that this is an unexpected behavior of vertical-align: middle and is probably responsible for a ton of vertical alignment hacks to work around the resulting visual artifacts. I too would have also expected that vertical-align: middle would by default align to the middle of the capital letters rather than the lower case or that there would at least be an alternate property like vertical-align: capital-middle or similar. But no such luck.

For reference: Mozilla Developer Network vertical-align: middle documentation.

The example in your question is unfortunately a little overly complicated to demonstrate the underlying problem. A more obvious demonstration of the problem is when you try to align the center line of an image with the center line through the capital letters of some neighboring text (as follows). I hope that this will help you to extrapolate an answer to your original question.

.imageTextPair {
  font-size: 50px;
}

.imageTextPair img {
  height: 75px;
  vertical-align: middle;
}
<span class="imageTextPair">
  <img src="https://www.citypng.com/public/uploads/preview/reticle-crosshair-red-icon-free-png-701751694974301y3cnksxiin.png">
  Neighboring text
</span>

As you can see, the middle of the image aligns with the center line through the lower case letters as described by the spec.

I tried solving the capital alignment problem using the new "display: flex" but without any luck. The following is my alternate in development solution using modern day tools:

.imageTextPair {
  font-size: 50px;
}

.imageTextPair img {
  --imagePixelHeight: 75;
  height: calc(var(--imagePixelHeight) * 1px);
  vertical-align: calc(0.5cap - ((var(--imagePixelHeight) / 2) * 1px));
}
<span class="imageTextPair">
  <img src="https://www.citypng.com/public/uploads/preview/reticle-crosshair-red-icon-free-png-701751694974301y3cnksxiin.png">
  Neighboring text
</span>

To explain how this works, the baseline of inline images is by default along the bottom of the image. The vertical-align property can currently take a number value that adjusts this baseline upward or downward. The calculation I perform basically moves the image down from the baseline by half the image height (so the middle of the image aligns with the baseline of the surrounding text), then I move the image upwards by half the height of the capital letters (0.5cap) to align the middle of the image exactly with the middle of the capital letters. This should in theory work with any font because the "cap" unit of measure uses the appropriate metrics inside the font.

You can also do the same thing using font relative units (em) so the image scales with the font if you change the font-size:

.imageTextPair {
  font-size: 50px;
}

.imageTextPair img {
  --imageEmHeight: 1.2;
  height: calc(var(--imageEmHeight) * 1em);
  vertical-align: calc(0.5cap - (var(--imageEmHeight) / 2) * 1em);  
}
    <span class="imageTextPair">
      <img src="https://www.citypng.com/public/uploads/preview/reticle-crosshair-red-icon-free-png-701751694974301y3cnksxiin.png">
      Neighboring text
    </span>

The obvious drawback of this approach is that you need to the know and set the height of the image explicitly in both the height and vertical-align properties. It would obviously be much nicer if we could implicitly use the height of the corresponding image in our vertical-align calculations. If anybody has some ideas of how this might be accomplished (without using JavaScript) I would welcome some further refinement to this approach.

Reasons:
  • Blacklisted phrase (1.5): any luck
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Chris Malek

79511372

Date: 2025-03-15 15:50:59
Score: 0.5
Natty:
Report link

I realize this is an older discussion, but I’m posting this note for anyone who stumbles upon this topic for the first time...

I’m developing the plugin called TLabWebview, a 3D web browser plugin released as open-source software on GitHub, where all features are available for free. It only supports Android platforms, for the VR device, such as the Meta Quest series. However, it works with multiple browser engines (WebView and GeckoView), supports multi-instance functionality, and can render to various targets, including Texture2D and CompositionLayers.

The documentation and API may not be as detailed as those of paid alternatives, but I’m actively enhancing them based on input from users.

I’m optimistic about the plugin’s efficiency since it captures the web browser frame as a byte array and transfers it directly to Unity without any pixel format adjustments (this is a reliable choice for the plugin’s rendering mode). When you opt for HardwareBuffer as the rendering mode, Texture2D and the web browser frame are aligned using HardwareBuffer, making it more efficient than transferring frame pixel data via the CPU.

Here are the links:

- The plugin is available here

- Official page is here

- VR sample is here

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

79511371

Date: 2025-03-15 15:50:59
Score: 3
Natty:
Report link

There was no better way of doing it, but this feature will now be available in the next release of polars as of release 1.25.2 on the basis of this commit: feat: Enable joins on list/array dtypes #21687.

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

79511365

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

This project builds a macOS app for Meld

https://formulae.brew.sh/cask/dehesselle-meld#default

Works great

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

79511364

Date: 2025-03-15 15:47:58
Score: 3
Natty:
Report link

Ok! Problem was in cache, but i forgot that i have deploy server configured in my PhpStorm(Apache) so i ve tried to clear cache in project, but i was need to clear cache under deployment folder. Sory for me being dummy)

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

79511355

Date: 2025-03-15 15:41:57
Score: 3
Natty:
Report link

As Mike said, it is a "Static Tiles" URL, so it has a 200,000 free tile requests per month.

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

79511349

Date: 2025-03-15 15:38:56
Score: 1
Natty:
Report link

For any one wondering how to view the content of pandas dataframe in Visual Studio 2022, the following can be done:

  1. Open 'Immediate Window' (Debug->Windows->Immediate)

  2. Optionally run the following commands in the immediate window once:

    pd.set_option('display.max_rows', None)
    pd.set_option('display.width', None)

    pd.set_option('display.max_columns', None)

  3. now type the variable name in immediate window and enter. You will see the data in the dataframe in the immediate window.

Reasons:
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Pramod B R

79511346

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

got to know the answer. The answer is the above won't work if it is run in a proper cluster. I was testing it locally using intellij without a flink cluster. Hence intellij runs it using local JVM, everything horizontally accessible to process function. But if we run the above in a cluster the FlinkTableEnvSingleton.getTable won't be accessible from an process fucntion and returns a null.

Reasons:
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Sai Ashrritth Patnana

79511338

Date: 2025-03-15 15:28:54
Score: 1.5
Natty:
Report link

For version > 8.3

If you're using latest image tag with below command, you may see similar issue.

--default-authentication-plugin=mysql_native_password

In that case, you might need to downgrade to version 8.3 and use this mysql_native_password authentication. You might need to run docker rm mysql or docker compose rm mysql in order to downgrade and rerun docker compose up.

This issue provides more information.

For version 8.4

You may need to add this command --mysql-native-password=ON and remove --default-authentication-plugin=mysql_native_password

For version 9+

Version 9 removed this option --mysql-native-password as mentioned in the release notes.

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Me too answer (2.5): see similar issue
Posted by: Piyush Patel

79511337

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

this turned out to be an issue with my mvc razore view _layout.cshtml file that was being used to render my html (which was then being passed to selectpdf). Several <script> tags were referencing web sites and cdn locations that apparently are no longer available, thus causing the html rendering to fail within selectpdf. Once i removed those script tags, everything started working again...thanks.

Reasons:
  • Blacklisted phrase (0.5): thanks
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: elitz

79511323

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

I know this is an old thread, but I'll leave this comment for anyone new to this question...

I’m developing the plugin called TLabWebview, a 3D web browser plugin released as open-source software on GitHub, where all features are available for free. It only supports Android platforms, for the VR device, such as the Meta Quest series. However, it works with multiple browser engines (WebView and GeckoView), supports multi-instance functionality, and can render to various targets, including Texture2D and CompositionLayers.

The documentation and API might not be as comprehensive as paid options, but I’m working on improving them with user feedback.

I’m confident in the plugin’s performance because this plugin retrieve web browser frame as byte array and pass it to Unity directly without any pixel format conversion (this is stable option of plugin's rendering mode). If you select HardwareBuffer as rendering mode, Texture2D and web browser frame are synchronized using HardwareBuffer so more efficient than pass frame's pixel data over cpu.

Here are the links:

- The plugin is available here

- Official page is here

- VR sample is here

Reasons:
  • Blacklisted phrase (1): this plugin
  • Long answer (-1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Lab T

79511319

Date: 2025-03-15 15:18:52
Score: 0.5
Natty:
Report link
Start
  → Enter Employee Data (EmployeeID, Name, Department, Position, Salary)
    → Validate Employee Information
      → If Valid?
        → Yes → Save Employee Data to Database
        → No → Show Error & Re-enter Employee Data
    → Record Attendance (AttendanceID, EmployeeID, Date, HoursWorked)
      → Validate Attendance Data
        → If Valid?
          → Yes → Store Attendance in Database
          → No → Show Error & Re-enter Attendance
      → Calculate Salary (Based on Hours Worked & Salary Rate)
        → Deduct Taxes & Other Deductions
          → Generate Payroll Record (PayrollID, EmployeeID, Month, Year, NetSalary, TaxDeduction)
            → Store Payroll in Database
              → Generate Salary Slip
                → Notify Employee (Email/SMS)
                  → End
make this er diagram 


Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: hadia g

79511301

Date: 2025-03-15 15:05:50
Score: 0.5
Natty:
Report link

public V putIfAbsent(K key, V value)

 a) key is not present-->return null

 b)key is already present-->returns old Value

void computeIfAbsent(K key,Function function)

 a) key is already present-->map wont be changed

 b)key is not present-->computes value
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: karthik gorijavolu

79511289

Date: 2025-03-15 14:52:47
Score: 3.5
Natty:
Report link

I installed the dev tools from vs code and then I could install pandasAI

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

79511288

Date: 2025-03-15 14:52:47
Score: 1.5
Natty:
Report link

if you are using swc

npm i -S @vitejs/plugin-react-swc

Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: vishal krishna

79511282

Date: 2025-03-15 14:46:46
Score: 0.5
Natty:
Report link

By referring to this post and this post, I got my workaround.

Although my issue has been resolved, I am still waiting for a native SwiftUI solution. This is just a workaround.

1. First, based on this answer, I need to implement my own NSScrollView() and override the scrollWheel() method to forward vertical scroll events. This answer also forwards vertical scroll events by overriding wantsForwardedScrollEvents(), but it is "too sensitive". Users' fingers cannot scroll precisely horizontally; there will always be a certain distance generated on the y-axis. Therefore, I did not adopt that method, even though it seems to be "less intrusive".
class MTHorizontalScrollView: NSScrollView {
    
    var currentScrollIsHorizontal = false
    
    override func scrollWheel(with event: NSEvent) {
        if event.phase == NSEvent.Phase.began || (event.phase == NSEvent.Phase.ended && event.momentumPhase == NSEvent.Phase.ended) {
            currentScrollIsHorizontal = abs(event.scrollingDeltaX) > abs(event.scrollingDeltaY)
        }
        if currentScrollIsHorizontal {
            super.scrollWheel(with: event)
        } else {
            self.nextResponder?.scrollWheel(with: event)
        }
    }
    
}
2. I need to create an NSViewRepresentable to use it in SwiftUI.
struct NSScrollViewWrapper<Content: View>: NSViewRepresentable {
    let content: Content
    
    init(@ViewBuilder content: () -> Content) {
        self.content = content()
    }
    
    func makeNSView(context: Context) -> NSScrollView {
        let scrollView = MTHorizontalScrollView()
        scrollView.hasHorizontalScroller = true
        scrollView.hasVerticalScroller = false
        scrollView.verticalScrollElasticity = .none
        scrollView.horizontalScrollElasticity = .allowed
        scrollView.autohidesScrollers = true
        scrollView.drawsBackground = false
        let hostingView = NSHostingView(rootView: content)
        hostingView.translatesAutoresizingMaskIntoConstraints = false
        
        scrollView.documentView = hostingView
        
        NSLayoutConstraint.activate([
            hostingView.topAnchor.constraint(equalTo: scrollView.topAnchor),
            hostingView.bottomAnchor.constraint(equalTo: scrollView.bottomAnchor),
            hostingView.leadingAnchor.constraint(equalTo: scrollView.leadingAnchor),
            hostingView.widthAnchor.constraint(greaterThanOrEqualTo: scrollView.widthAnchor)
        ])
        
        return scrollView
    }
    
    func updateNSView(_ nsView: NSScrollView, context: Context) {
        if let hostingView = nsView.documentView as? NSHostingView<Content> {
            hostingView.rootView = content
        }
    }
}
3. Perhaps completing step 2 is sufficient for use, but here I will take it a step further and extend it to View for easier use anywhere.
extension View {
    @ViewBuilder
    func forwardedScrollEvents(_ enabled: Bool = true) -> some View {
        if enabled {
            NSScrollViewWrapper {
                self
                    .scrollDisabled(true)
                    .frame(maxWidth: .infinity, alignment: .leading)
            }
        } else {
            self
        }
    }
}
4. Everything is ready, and it can be used now.
struct ContentView: View {
    var body: some View {
        List {
            ForEach(0..<5) { index in
                Text("\(index) line")
            }
            ScrollView(.horizontal) {
                Text("hello, world! hello, world! hello, world! hello, world! hello, world!\n hello, world! hello, world! hello, world! \n hello, world! hello, world! hello, world! hello, world!")
            }.font(.largeTitle)
            .forwardedScrollEvents() //this!
            ForEach(5..<10) { index in
                Text("\(index) line")
            }
        }
    }
}
Reasons:
  • Blacklisted phrase (0.5): I need
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Binglei Ma

79511272

Date: 2025-03-15 14:34:45
Score: 0.5
Natty:
Report link

You didn't specify the shape of y which I think is the reason for this error. However, here is my point:

Tensorflow has two potential formats for target values (y) and the selection of the loss defines which is expected.

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

79511260

Date: 2025-03-15 14:23:43
Score: 1
Natty:
Report link

I recently submitted a feature request to the Vagrant GitHub repo to allow disabling the communicator entirely, making Vagrant usable purely as a VM manager.

Given the community interest in this topic (including this thread), if you think this feature would be useful, feel free to give it a thumbs up or leave a comment to help give it some visibility! 🚀

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

79511245

Date: 2025-03-15 14:08:38
Score: 11.5 🚩
Natty: 4
Report link

Have you found a way to solve this problem? I know for sure that it can be done, but I can't find a solution yet

Reasons:
  • RegEx Blacklisted phrase (1.5): solve this problem?
  • RegEx Blacklisted phrase (2.5): Have you found a way to solve this problem
  • RegEx Blacklisted phrase (2): I can't find a solution
  • RegEx Blacklisted phrase (2): can't find a solution
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Artem Baranov

79511243

Date: 2025-03-15 14:07:37
Score: 3
Natty:
Report link

On Windows 11, I had to remove the logs part of the cachique's answer in order not to get 'Permission Denied' error.

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

79511237

Date: 2025-03-15 14:00:34
Score: 15.5 🚩
Natty: 5.5
Report link

I hope ok for everything. It's been a while but I wanted to ask. I'm having the same problem. I want to show the version of the app in the bottom right corner before the screenshot is taken and include it in the screenshot but I haven't found a solution yet.

I get versiyon number with package_info_plus package and this ok. and i using screenshot_callback package. This one is not work before screenshot.

Do you have any solution for this issue?

Thanks for everything!

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (1): I'm having the same problem
  • Blacklisted phrase (1.5): any solution
  • RegEx Blacklisted phrase (1): I want
  • RegEx Blacklisted phrase (2.5): Do you have any
  • RegEx Blacklisted phrase (1): haven't found a solution
  • RegEx Blacklisted phrase (2): any solution for this issue?
  • No code block (0.5):
  • Me too answer (2.5): I'm having the same problem
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: AE_Kaba

79511234

Date: 2025-03-15 13:58:33
Score: 2.5
Natty:
Report link

You might consider using the Pushover service. No need for additional hardware, just the ESP32. Works for me several years now.

Reasons:
  • Whitelisted phrase (-1): Works for me
  • Low length (1):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Dick

79511233

Date: 2025-03-15 13:57:33
Score: 1
Natty:
Report link

I saw the {Emoji} and other Unicode character class escapes in some answers to achieve the goal, but no one explains how they work, which have been part of the baseline since July 2015:

After reviewing the mentioned tables, the most promising one seems to be Extended_Pictographic:

function removeEmojis(str) {
  return str.replace(/[\p{Extended_Pictographic}]/gu, '');
}

let text = "Hello 🌍! This is a test with ❤️ and 123. 😃";
let cleanedText = removeEmojis(text);

console.log(cleanedText); // "Hello ! This is a test with  and 123."

Reasons:
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • High reputation (-1):
Posted by: rozsazoltan

79511224

Date: 2025-03-15 13:50:32
Score: 3
Natty:
Report link

I build an amazing tools to play m3m8 file online, like https://publiciptv.com/m3u8?address=https%3A%2F%2Ftgn.bozztv.com%2Fbetterlife%2Fbetternature%2Fbetternature%2Findex.m3u8

and you can share your Recent Streams to friends very easily and it is privacy.

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

79511219

Date: 2025-03-15 13:44:31
Score: 1.5
Natty:
Report link

WARNING: this is a very old thread and is no longer possible to extract text this way (eg. fz_new_text_sheet is no longer exported by muPDF). I have wasted an entire morning because copilot seems to be recommending code of the same nature.

I am trying to find the "modern" way to do it (using fz_new_stext_page?) and will report back

Reasons:
  • Blacklisted phrase (1): I am trying to
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: nikos

79511216

Date: 2025-03-15 13:42:30
Score: 1
Natty:
Report link

Let's suppose that the gateway processing has two possible outcomes:

the normal processing outcome or the processing-failure outcome.

Does it matter for the Clean Architecture how do you implement the processing-failure outcome? as a method return-result or as an Exception? of course not!

So, the place you must use for the processing outcome implementation should be the same for both the method-return class and the Exception class.

Reasons:
  • Blacklisted phrase (1): how do you
  • No code block (0.5):
  • Contains question mark (0.5):
  • High reputation (-1):
Posted by: Adrian

79511214

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

Answer myself,

this is caused by compiler's optiomization.

Firebase frameworks register them self by calling load method static method for Service component(Objective-C code, automatically called on runtime).

framwork's components files actally not using directly so build setting in Tuist ignore Component file. and so registration not worked.

So we should add Other linker flag field a value '-ObjC'. this flag compile Objective-C file in static library imported to this executable.

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

79511212

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

You would need to change your solution approach due API gateway 30 second timeout.
API gateway request response has a maximum timeout of 30 seconds, anything above that would receive timeour errors.

You can change your solution in multiple ways

1. Have 2 lambda's first one attached to API gateway which takes the request and calls another lambda asynchronously and return request accepted to the API gateway.

2. Have 2 lambda's first one attached to API gateway which takes the request and sends as a message on SQS which is then asynchronously processed by the other lambda

3.Instead of using REST API gateway change to use websocket and then handle it if your client is expecting processing status

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

79511205

Date: 2025-03-15 13:34:28
Score: 0.5
Natty:
Report link

Some tips in order to all process:

Pointing to creation

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

79511202

Date: 2025-03-15 13:31:28
Score: 1.5
Natty:
Report link

As per the official documentation claude haiku 3.0 is available as cross region inference.

Change the model id to as below

# Set the model ID, e.g., Claude 3 Haiku.
model_id = "us.anthropic.claude-3-haiku-20240307-v1:0"

https://docs.aws.amazon.com/bedrock/latest/userguide/models-supported.html

https://docs.aws.amazon.com/bedrock/latest/userguide/inference-profiles-support.html

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

79511201

Date: 2025-03-15 13:31:27
Score: 4
Natty:
Report link

I recommend looking over this VS2017+ extension:
https://marketplace.visualstudio.com/items?itemName=darkdaskin.tabpath

Visual Studio 2022 file tabs after adding extension

More information can be found in the original post: https://stackoverflow.com/a/79511184/2109230

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: MatrixRonny

79511185

Date: 2025-03-15 13:23:26
Score: 2
Natty:
Report link

It was related to organization secrets. I had put my secrets in the organization level and not in the target repository in github. For using parent org. i think paid upgrades is required

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

79511184

Date: 2025-03-15 13:22:26
Score: 1
Natty:
Report link

I recommend looking over this extension:
https://marketplace.visualstudio.com/items?itemName=darkdaskin.tabpath

It adds path context whenever there are two files with the same name. The path is expanded backwards until the relative paths are different. This helps when parent folders have the same name. For example:

Here is how it looks like: Visual Studio 2022 file tabs after adding extension

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

79511168

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

You should place root.mainloop() into the last line. Your code pauses when running root.mainloop() and it will be run after you close the window. So there is nothing.

Still cannot run? Your program may contains some mistakes and typos and you have to fix it.

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

79511167

Date: 2025-03-15 13:15:24
Score: 1.5
Natty:
Report link

This error bit me when I upgrade to Cordova android@13. The error message is bogus as it has nothing to do with 'compileSdkVersion' but rather with the 'android-versionCode' attribute in the <widget> take.

Apparently, this must be a whole number (e.g. 17) and never number like 17.1.

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

79511165

Date: 2025-03-15 13:13:23
Score: 2.5
Natty:
Report link

Yes, you can achieve this in Excel by using a Three-Color Scale in Conditional Formatting, setting the midpoint at zero. This approach ensures that values below zero are shaded red, values above zero are shaded green, and zero itself is a neutral color (e.g., white or yellow).

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

79511159

Date: 2025-03-15 13:10:23
Score: 1
Natty:
Report link

I think your call Clipboard calls are getting plain text out of Word ... but Outlook will need HTML.

This (very old) thread has the same question. Solution there uses VB to save/convert the doc to HTML, then send a copy of that HTML to Outlook. I expect this is the route you will need to go:

https://www.experts-exchange.com/questions/23606380/Copy-Word-Doc-to-Body-of-Email.html

Ah, same one here, also:
How to send a Word document as body of an email with VBA

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

79511156

Date: 2025-03-15 13:09:22
Score: 3.5
Natty:
Report link

This maybe help. This works for me.

https://github.com/heroui-inc/heroui/issues/1294#issuecomment-2726503092

Reasons:
  • Whitelisted phrase (-1): works for me
  • Probably link only (1):
  • Low length (2):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Elizeu Braga Santos

79511144

Date: 2025-03-15 12:54:19
Score: 0.5
Natty:
Report link

In my case, the problem was that a transactional method threw a custom exception that was intended to be caught by another method:

@Transactional
public void foo() throws CustomException {
    if (...) throw new CustomException();
}

and in another class:

try {
    x.foo()
} catch (CustomException e) {
    // do something
}

However, the CustomException cannot be caught because the transaction is aborted as soon as the exception is thrown.

This article was very helpful for debugging.

Solution

The solution was to add @Transactional(noRollbackFor = CustomException.class) to the foo() method so that the exception is thrown to the caller.

Reasons:
  • Blacklisted phrase (1): This article
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Timo Zikeli