79553641

Date: 2025-04-03 17:44:57
Score: 1
Natty:
Report link

import cv2

import numpy as np

# Cargar la imagen en formato de matriz

image = cv2.imread(image_path)

# Convertir a escala de grises para detectar daños

gray = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)

# Aplicar umbral para detectar las áreas dañadas (blancas)

_, mask = cv2.threshold(gray, 200, 255, cv2.THRESH_BINARY)

# Aplicar inpainting para restaurar las áreas dañadas

restored_image = cv2.inpaint(image, mask, inpaintRadius=3, flags=cv2.INPAINT_TELEA)

# Guardar la imagen restaurada

restored_image_path = "/mnt/data/restored_image.jpg"

cv2.imwrite(restored_image_path, restored_image)

# Mostrar la imagen restaurada

restored_image_path

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

79553639

Date: 2025-04-03 17:41:57
Score: 1.5
Natty:
Report link

Changing the /etc/tinyproxy/tinyproxy.conf file section:

"# MaxClients: This is the absolute highest number of threads which will

# be created. In other words, only MaxClients number of clients can be

# connected at the same time.

#

MaxClients 100"

to:

MaxClients 1000

solved it for me. Did not change anything else. Mine is a dedicated VM, running as an LXC on Alpine Linux with CPU and 384MB of RAM

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

79553638

Date: 2025-04-03 17:41:57
Score: 3.5
Natty:
Report link

Solve my problem after reading your post, really useful information

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

79553636

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

If you need to get current date:

new NumberLong(new Date().getTime())
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: David Tabla

79553631

Date: 2025-04-03 17:38:56
Score: 0.5
Natty:
Report link

Manually deleting this file: android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java worked for me.
After that, I ran this command: flutter pub get.

Reasons:
  • Whitelisted phrase (-1): worked for me
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Josué ALLAGBE

79553629

Date: 2025-04-03 17:37:55
Score: 1
Natty:
Report link

For me, the issue was different. I found AWS ElastiCache Valkey uses the default VPC security group, and the security group's inbound rule source was the security group itself ( in my case ), although I needed it to be the Lambda security group instead. If you want a quick solution that is not secure and may cause issues later, you can add the Lambda security group to the ElastiCache cluster. But the Lambda security group should definitely have inbound access to itself. Although in this case, you will be making unnecessary allowances to this group. ( not secure )

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

79553625

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

How to Upgrade:

  1. First, check for outdated packages:
npm outdated
  1. For a safe upgrade (following semantic versioning):
npm update
  1. For major version upgrades or specific packages:
npm install package@latest
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Starts with a question (0.5): How to
  • Low reputation (1):
Posted by: Uma Das

79553624

Date: 2025-04-03 17:35:55
Score: 0.5
Natty:
Report link

Now rust support it https://github.com/rust-lang/rust/pull/134367

example in the problem

trait Base {
    fn a(&self);
    fn b(&self);
    fn c(&self);
    fn d(&self);
}

trait Derived : Base {
    fn e(&self);
    fn f(&self);
    fn g(&self);
}

struct S;

impl Derived for S {
    fn e(&self) {}
    fn f(&self) {}
    fn g(&self) {}
}

impl Base for S {
    fn a(&self) {}
    fn b(&self) {}
    fn c(&self) {}
    fn d(&self) {}
}

fn example(v: &dyn Derived) {
    v as &dyn Base;
}

playground link https://play.rust-lang.org/?version=stable&mode=debug&edition=2024&gist=e13f174aa408f890a771284206fab07b

Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
Posted by: AsukaMinato

79553623

Date: 2025-04-03 17:35:55
Score: 1
Natty:
Report link

I solved the problem.

Leaving the code as an example for others.

Reasons:
  • Whitelisted phrase (-2): I solved
  • Low length (1.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: NRG

79553607

Date: 2025-04-03 17:22:52
Score: 3.5
Natty:
Report link

If you're using Excel 365 or Excel 2021 and above, an alternative is to use FILTER, that returns an array (or matrix) that you can then sum. SUM(FILTER($C$5:$X$33, A$5:A$33=A37)).

https://support.microsoft.com/en-us/office/filter-function-f4f7cb66-82eb-4767-8f7c-4877ad80c759

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

79553605

Date: 2025-04-03 17:21:52
Score: 1.5
Natty:
Report link

I did it!

Format your visual > Values > Background

enter image description here

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • High reputation (-2):
Posted by: Francesco Mantovani

79553600

Date: 2025-04-03 17:20:51
Score: 5.5
Natty:
Report link

I am not able to regenerate it. For me, it is giving the correct output and is not repeating PPP::vector::[]. Can you please tell me which version of C++ you used to get this issue?"

Reasons:
  • Blacklisted phrase (1): I am not able to
  • RegEx Blacklisted phrase (2.5): Can you please tell me
  • Low length (0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Vikas Sharma

79553596

Date: 2025-04-03 17:18:50
Score: 2
Natty:
Report link

I have been looking for this as well, doesn't seem there is a global setting for this at the moment but I have opened an issue for it on the VS Code GitHub repository.

I'll try to update if anything comes of it. For now it seems like you can only really implement this for your own custom tasks as far as I can tell.

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

79553587

Date: 2025-04-03 17:13:49
Score: 3.5
Natty:
Report link

If the color persists incorrectly, try File > Invalidate caches / Restart

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

79553582

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

Here's another reason why it may not work as expected: You're actually not using bootstrap modal, but coreui's version!

Bootstrap Events CoreUI Events
show.bs.modal show.coreui.modal
shown.bs.modal shown.coreui.modal
hide.bs.modal hide.coreui.modal
hidden.bs.modal hidden.coreui.modal
n/a hidePrevented.coreui.modal
Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: finn_matti

79553575

Date: 2025-04-03 17:06:47
Score: 3
Natty:
Report link

Maybe I didn't understand your question but wouldn't beautifoulsoup be good for you? I'm using it to scrap websites and it seems ok.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Xetolone

79553572

Date: 2025-04-03 17:06:47
Score: 1.5
Natty:
Report link

For posterity, I looked through my template several times, especially around where the compiler said the error was, the issue was actually that I did not close the <script> tag.

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

79553564

Date: 2025-04-03 17:01:46
Score: 1.5
Natty:
Report link

it was a middleware issue I added the secureCookie line and it works now : `const token = await getToken({

req: request,

secret: process.env.AUTH_SECRET,


secureCookie: process.env.NODE_ENV === "production", // Forces secure cookies in production

});`

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

79553561

Date: 2025-04-03 17:00:45
Score: 0.5
Natty:
Report link

I believe the approach provided by this answer https://stackoverflow.com/a/61422022/602506 is better than the others.

What's the approach? In your @ExceptionHandler method simply call response.sendError() to set the response status which Spring Boot's BasicErrorController uses later when putting together the response. For example:

@ExceptionHandler(EmptyResultDataAccessException.class)
public void handleEntityNotFoundException(EmptyResultDataAccessException e, HttpServletResponse response) throws IOException {
    response.sendError(HttpServletResponse.SC_NOT_FOUND);
}

Why is this better?

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • RegEx Blacklisted phrase (0.5): Why is this
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
Posted by: Shannon

79553554

Date: 2025-04-03 16:56:44
Score: 1
Natty:
Report link

You can also use the case_when function within a dplyr pipeline. (You can check the documentation here)

library(tidyverse)

test <- test %>%
    mutate (
        extravar1 = case_when ( 
             YEAR == 2018 ~ var1 + var2,
             YEAR == 2019 ~ var4 + var5),
        extravar2 = case_when (
             YEAR == 2018 ~ var2 + var3,
             YEAR == 2019 ~ var5 + var6))
Reasons:
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: mario

79553543

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

Use the code in the head of your html code.

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

79553541

Date: 2025-04-03 16:46:41
Score: 4.5
Natty:
Report link

It zen mode in actions search.

enter image description here

It looks something like this

enter image description here

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: sladkkov

79553536

Date: 2025-04-03 16:43:41
Score: 1.5
Natty:
Report link

you have to localeText props provided in the DataGrid

e.g.

<DataGrid
    columns={columns}
    rows={filteredData}
    slots={{ toolbar: CustomGridToolbar }}
    localeText={{ toolbarFilters: "" }}
/>
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Guest Super Man

79553535

Date: 2025-04-03 16:43:41
Score: 2
Natty:
Report link

Triggering a redraw after horizontal lines are visible, like maximising the window, makes them go away.

However doing the maximise parameter on start won't work the redraw must be after the window is generated.

(Raspberry Pi 4B Raspberry Pi OS)

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

79553532

Date: 2025-04-03 16:42:40
Score: 4
Natty: 4.5
Report link

Check this out! I managed to fix the same bug you're facing by following this:

Next.js 13 Error: could not find react-redux context value; please ensure the component is wrapped in a <Provider>

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

79553528

Date: 2025-04-03 16:40:39
Score: 0.5
Natty:
Report link

I'm not sure if this is the best or only way to do it, but I followed this doc (https://www.amcharts.com/docs/v4/tutorials/creating-custom-maps/) and was able to figure out a solution.

I downloaded a GeoJSON file of the USA, opened it in mapshaper.org to make a few tweaks to the shapes, and then saved it in a .JS file like that doc directs.

Then, I used the worldLow orthographic projection with my custom map overlaid as a MapPolygonSeries.

   // Create map instance
  let chart = am4core.create("chartdiv", am4maps.MapChart);
  
  // Set base map (worldLow)
  chart.geodata = am4geodata_worldLow;
  chart.projection = new am4maps.projections.Orthographic();

 let worldSeries = chart.series.push(new am4maps.MapPolygonSeries());
  worldSeries.useGeodata = true;

// Overlay series (Custom USA with states)
  let usaSeries = chart.series.push(new am4maps.MapPolygonSeries());
  usaSeries.geodata = am4geodata_worldUSA;  // Your custom dataset
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Adam Hansen

79553521

Date: 2025-04-03 16:38:39
Score: 3.5
Natty:
Report link

stateIn creates a StateFlow and not a MutableStateflow, so I think is impossible to update it's value. Since the state of your screen can be changed you should have a MutableStateflow and update it's value when you need to update the screen state. Since the initial loading of the screen is dependent on the userInfoApi data, why is it not good to call it inside the init of the viewmodel?

Reasons:
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: vasberc

79553514

Date: 2025-04-03 16:34:38
Score: 0.5
Natty:
Report link
namespace PPP {

    using Unicode = long;

    // ------- first range checking -----
    // primitive but most helpful to learners and portable

    template<class T> concept Element = true;

    PPP_EXPORT template <Element T>
        class Checked_vector : public std::vector<T> {  // trivially range-checked vector (no iterator checking)
        public:
            using std::vector<T>::vector;

            T& operator[](size_t i)
            {
                std::cerr << "PPP::vector::[]\n";
                return this->std::vector<T>::at(i);
            }

            const T& operator[](size_t i) const
            {
                std::cerr << "PPP::vector::[] const\n";
                return this->std::vector<T>::at(i);
            }
            //  ...
    }; // range-checked vector
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Bossplayaxvii

79553509

Date: 2025-04-03 16:32:37
Score: 2.5
Natty:
Report link

I had ECR policy to accept push from the role in dev using the ARN. However, this method no longer works...

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

79553503

Date: 2025-04-03 16:30:36
Score: 0.5
Natty:
Report link

you can follow examples or use a script like wpdockerize to create the docker-compose.yml file with basic configuration.

Have a look here: https://github.com/diego-betto/wpdockerize
Then all you need to do is run

wpdockerize

and follow the few questions about your configuration and you are ready to go with

docker-compose up -d
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Diego Betto

79553500

Date: 2025-04-03 16:28:36
Score: 1
Natty:
Report link

Combining the findings from Hacking TSDoc support into Storybook and How to filter JSDoc in Storybook Autodocs gives us a global solution within storybook's preview.js|jsx|ts|tsx:

// preview.ts
import {
  Component,
  extractComponentDescription as baseExtractComponentDescription,
} from 'storybook/internal/docs-tools';

const extractComponentDescription = (component: Component): string => {
  const description = baseExtractComponentDescription(component);
  const noParamsDescription = description.replace(/@param.+/gm, '');

  return noParamsDescription;
};

export const parameters = {
  docs: {
    extractComponentDescription,
  },
}

Note that we are overriding the extractComponentDescription function from the storybook shared utility docs-tools. Based on this note in the storybook addon docs (also mentioned in Hacking TSDoc support) providing a custom docs.extractComponentDescription parameter is supported.

The relevant docs-tools functions can be found here:

extractComponentDescription

getDocgenDescription

hasDocgen

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

79553499

Date: 2025-04-03 16:27:35
Score: 4
Natty:
Report link

Once a pone a time there was a cat named fat Simga ass and it kept pooping and peeing . His house was filled with poop and filled the earth with poop and every one became a astrounot and went to a different planet and made it their home .the cat filled the whole solar system with poop and filled the Milky Way with poop and god killed the fat sigma ass cat and it died …………………the end

Reasons:
  • Blacklisted phrase (2): poop
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: ria

79553498

Date: 2025-04-03 16:27:35
Score: 3
Natty:
Report link

Actually... I was doing this and overthinking it. Just add another text block beneath that one with "none" spacing set and include the next line of text there. It's much cleaner.

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

79553491

Date: 2025-04-03 16:26:35
Score: 3.5
Natty:
Report link

Finally the best option was to directly send websocket messages to the appropriate room when an update is done from stripe webhook so that when the user connects to the frontend his account is automatically updated thanks to the ws pending message.

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

79553489

Date: 2025-04-03 16:25:34
Score: 0.5
Natty:
Report link

I would like to refer to this article, which explains it shortly but clearly. The Docker CLI actually sets two attributes (in two requests) to achieve the desired result of the one -p PORT option.

So, you not only need to specify the "ExposedPorts" attribute in the /containers/create request, but also the "PortBindings" attribute in the /containers/{id}/start request as follows:

{
    "id": id,
    "PortBindings": {
        "container_port/tcp": [
            {
                 "HostIp": "host_ip", // Strings, not numbers here
                 "HostPort": "host_port"
            }
        ]
    }
}

Don't forget/oversee the square brackets as in David Maze's answer.

Reasons:
  • Blacklisted phrase (1): this article
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Christoph Derszteler

79553478

Date: 2025-04-03 16:17:32
Score: 5
Natty:
Report link

I am having trouble accessing that URL. I will try to get the video details using the video ID. I am having trouble accessing the video using the provided URL and video ID. I am unable to provide information about the video at this time. You may want to try searching for the video on YouTube directly. lPAD CPH2471https://m.youtube.com/watch?v=sLb4W8Z1Mr0&list=PLy4StESCJ4jwOZZvAIXygVXR8CTD3GbWQ&pp=gAQBiAQB

Reasons:
  • Blacklisted phrase (1): youtube.com
  • RegEx Blacklisted phrase (2): I am having trouble
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: SARAWUT KUEAKOOL

79553472

Date: 2025-04-03 16:16:32
Score: 3
Natty:
Report link

Only use

int[] v = {1,2,3};

string strV = string.Join(",", v);

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

79553469

Date: 2025-04-03 16:14:31
Score: 4
Natty:
Report link

As an example for separate subfolder/project with different environment docker files.

enter image description here

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

79553465

Date: 2025-04-03 16:12:31
Score: 3.5
Natty:
Report link

Here you can see the differences between upsampling and ConvTranspose2D: Pytorch Forumns discussion.

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Eduardo L da Silva

79553461

Date: 2025-04-03 16:11:30
Score: 2.5
Natty:
Report link

I no sooner post this than a colleague provides the answer!

It turns out this is not a ClickOnce issue, per se. It is caused by the tool we're using to sign the manifest. All I needed to do was add a '-pn "Company Name"' and the tool used that rather than the default "distinguished name".

The crack about file name length restrictions stands. 🤣

Reasons:
  • Blacklisted phrase (0.5): I need
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Bradley Plett

79553453

Date: 2025-04-03 16:09:30
Score: 2
Natty:
Report link

The solution for this problem, that me even have faced is to use a software or a chrome extension (if you are using chrome, if not try it because I recommend it for programmers) to identify the color displayed on the screen. The best chrome extension for this operation is called colorZilla: https://chromewebstore.google.com/detail/colorzilla/bhlhnicpbhignbdhedgjhgdocnmhomnp So have fun editing the new website mate, Thanks for reading this out

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • No code block (0.5):
  • Low reputation (1):
Posted by: Kirubel Mesfin

79553450

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

Microsoft just announced that the preview has been restricted to US and Canada-based organizations with 3 years or more of verifiable history as of April 2nd (Yesterday).

https://techcommunity.microsoft.com/blog/microsoft-security-blog/trusted-signing-public-preview-update/4399713

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

79553448

Date: 2025-04-03 16:07:29
Score: 2
Natty:
Report link

Just wrap your flatlist in a safearea view by react-native-safe-area-context Works for me like a charm

Reasons:
  • Whitelisted phrase (-1): Works for me
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Harsh wardhan Roll no. 84

79553441

Date: 2025-04-03 16:06:29
Score: 1.5
Natty:
Report link

This library supports map/set comparison operations including .equals: https://github.com/adamhamlin/deep-equality-data-structures?tab=readme-ov-file#comparable-interface

const map1 = new DeepMap([[1, "dog"], [2, "cat"]]);
const map2 = new DeepMap([[2, "cat"], [1, "dog"]]);
const map3 = new DeepMap([[1, "dog"], [2, "laser-cat"]]);

map1.equals(map2); // true
map1.equals(map3); // false

It also uses deep/structural equality for keys and values.

Full disclosure: I am the library author

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

79553438

Date: 2025-04-03 16:05:29
Score: 1.5
Natty:
Report link

I had the same issue. Setting the main branch to default didn't fix it. Eventually I simply removed the pipeline (click the ellipses, remove pipeline, type the name to confirm) and re-created the pipeline. That solved it and now the default branch is displayed in the UI again.

Reasons:
  • Whitelisted phrase (-1): I had the same
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Tim Groothuis

79553433

Date: 2025-04-03 16:01:27
Score: 0.5
Natty:
Report link

Sometimes I wonder why the solution needs to be so complicated... Here is an example you can do from Bash in a 1-liner:

 python -c "import cloudflare; help(cloudflare)" >> cloudflare.txt
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Zack A

79553430

Date: 2025-04-03 16:00:27
Score: 2
Natty:
Report link

The home document draft comes to mind.

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

79553428

Date: 2025-04-03 15:59:27
Score: 2
Natty:
Report link

I was getting the same issue and tried everything... until I uploaded the file to googlecolab and then just copied path, so it can work enter image description here

df = pd.read_csv('/content/music_project_en.csv')
#/content/ is where it was uploaded in gcolab
Reasons:
  • Blacklisted phrase (1): enter image description here
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Brittany Torres

79553419

Date: 2025-04-03 15:54:25
Score: 2
Natty:
Report link
const dataArray = [['Data 3', 'd3'], ['Data 4', 'd4']];
dataArray.forEach(row => {
  describe('Test group using %s with tag %s', () => 
  {
    let groupData = [{'id':'01'},{'id':'02'}];
    let groupTag = '';
    let datafile = '';
    switch(row[1])
    {
    case 'd3': groupData = [{'id':'31'},{'id':'32'}]; break;
    case 'd4': groupData = [{'id':'41'},{'id':'42'}]; break;
    }
    datafile = row[0];
    groupTag = row[1];
    console.log('Beginning tests for '+groupTag+' using '+datafile+'\r\n groupData set to '+JSON.stringify(groupData[0])+' and '+JSON.stringify(groupData[1]));
    groupData.forEach(num => test('Test case ${num} [tag:sandbox]', () => 
      {
        console.log(groupTag+' - Running test '+num.id); 
        expect(num.id).toBeDefined(); //example test
      }));
  });
});
 

This got the 'desired' result, defining all the tests first, then running them

    console.log
      Beginning tests for d3 using Data 3
       groupData set to {"id":"31"} and {"id":"32"}
      Beginning tests for d4 using Data 4
       groupData set to {"id":"41"} and {"id":"42"}
      d3 - Running test 31
      d3 - Running test 32
      d4 - Running test 41
      d4 - Running test 42

hat tip to the linked question Using jest's test.each vs. looping with forEach
and https://stackoverflow.com/users/3001761/jonrsharpe for his comment.

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Probably link only (1):
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Simon Oliver

79553414

Date: 2025-04-03 15:52:25
Score: 6
Natty: 7
Report link

Why is your program called IEXPLORE.EXE?

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Starts with a question (0.5): Why is you
  • Low reputation (1):
Posted by: semmalnk

79553410

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

If you're using Shadcn with css variables, you can do this:

:root,
.not-dark {
   --background: ...

Then you apply the .not-dark class to your element that needs to be light mode.

Obviously you can name the class light-mode or anything else you want.

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

79553407

Date: 2025-04-03 15:50:23
Score: 13 🚩
Natty: 4.5
Report link

Yvan, did you ever solve this problem? I am having the exact same issue. I have tried everything I can think to resolve this but no luck. Very, very frustrating.

Reasons:
  • Blacklisted phrase (1): ve tried everything
  • Blacklisted phrase (1): no luck
  • RegEx Blacklisted phrase (3): did you ever solve this problem
  • RegEx Blacklisted phrase (1.5): solve this problem?
  • Low length (1):
  • No code block (0.5):
  • Me too answer (2.5): I am having the exact same issue
  • Contains question mark (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: David Buckalew

79553404

Date: 2025-04-03 15:48:22
Score: 2.5
Natty:
Report link

We stopped using ng-jhipster in 2020.

https://github.com/jhipster/generator-jhipster/issues/12909

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

79553398

Date: 2025-04-03 15:45:21
Score: 0.5
Natty:
Report link

If someone gets there using Solr 9.8+
A new feature disables <lib> by default so our solrConfig.xml cannot load libraries.
You must run Solr with the SOLR_CONFIG_LIB_ENABLED=true environment var to bypass this.

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

79553394

Date: 2025-04-03 15:43:18
Score: 3
Natty:
Report link

I managed to solve it by downloading the Google Chrome extension and adding the method that starts the chromedriver

https://github.com/capsolver/capsolver-browser-extension

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

79553392

Date: 2025-04-03 15:42:18
Score: 3
Natty:
Report link

Sorry, I'm just a noob, I've forgot to add a port 80:80 on my nginx proxy

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

79553390

Date: 2025-04-03 15:41:16
Score: 8 🚩
Natty: 6
Report link

I follow this guide. When dragging an item, I move item A into item B but haven’t released it yet. Then, I drag it back to its original position and drop it there. However, the item doesn’t land exactly where I intended. Is there a way to fix this bug?

Reasons:
  • Blacklisted phrase (1): this guide
  • Blacklisted phrase (1): Is there a way
  • RegEx Blacklisted phrase (1.5): fix this bug?
  • Low length (0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: sơn nguyễn sỹ

79553388

Date: 2025-04-03 15:40:16
Score: 4.5
Natty:
Report link

It seems that there is more myself having any issue, then the problem is not on our personal resources, but something a little prior to that.

Any idea what it could be?

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

79553370

Date: 2025-04-03 15:33:14
Score: 3
Natty:
Report link

I'm seeing the same thing with the Firefox. Removing Browser="Xml" from the ultrawebgrid config fixed the immediate problem but I have not debugged it further.

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

79553366

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

maybe this extenison will help, it can pick colors and find fonts on the website

https://design-picker.yisi.app/

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

79553361

Date: 2025-04-03 15:30:13
Score: 5.5
Natty:
Report link

Json does not support multi-line strings, check this question:
Are multi-line strings allowed in JSON?

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (0.5):
Posted by: berserck

79553356

Date: 2025-04-03 15:28:12
Score: 4
Natty:
Report link

Since Next15, a guide has been posted to Next's own documentation. You can find it here: https://nextjs.org/docs/app/building-your-application/configuring/progressive-web-apps

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

79553353

Date: 2025-04-03 15:27:11
Score: 1
Natty:
Report link

The az containerapp job start has a bug or it's not well written on the documentation on how to solve this issue.

However, there is a hack, that allows you to pass --env-vars and/or --command (if you need to change the args) to az containerapp job start.

You must include the --image on az containerapp job start and in this case it will accept the --env-vars.

This hack is described in this github issue:
https://github.com/Azure/azure-cli/issues/27023#issuecomment-1655749757

Reasons:
  • Blacklisted phrase (1): how to solve
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Code Rage

79553349

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

Figured it out.

I am using parrot os which restricts the ansible version to 2.16 and has this bug:
github.com/ansible/ansible/issues/83755

To get around this I created a venv environment and installed ansible there. After doing that I no longer receive the above error.

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

79553342

Date: 2025-04-03 15:22:10
Score: 3
Natty:
Report link

It's 2025, and I can confidently say the issue persists! Even the most advanced modern LLMs have yet to crack it!

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

79553341

Date: 2025-04-03 15:22:10
Score: 3.5
Natty:
Report link

@types/node sollte installiert sein (npm i -D @types/node), damit die Typisierung von $t korrekt funktioniert.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Looks like a comment (1):
  • Low reputation (0.5):
Posted by: Nekudotayim

79553339

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

From your problem, I think I have two main causes that might produce the IP address not properly converting, remaining an integer:


Query query = entityManager.createNativeQuery("SELECT INET_NTOA(ip) as address, port, nickname FROM printers", PrinterEntity.class);
List<PrinterEntity> printers = query.getResultList();
Reasons:
  • Blacklisted phrase (1): this document
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Grebla Andrei

79553300

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

I did solved it with this:

Add now text area as you see above the settings of contact form 7 and there is pick list if you would make this is a required field . Add now code and change it in email section.

[textarea* textarea-XXX]

I think the * is the point of required field.

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

79553290

Date: 2025-04-03 14:56:02
Score: 3.5
Natty:
Report link

Thanks to a suggestion from @furas, I finally spotted the bad character. The corrected line is

sql = sql + "first_query." + stat_field + " = second_query." + stat_field + " "
Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Low length (1):
  • Has code block (-0.5):
  • User mentioned (1): @furas
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Bob Burley

79553288

Date: 2025-04-03 14:56:02
Score: 3.5
Natty:
Report link

Did you try telling it in the system prompt not to fill out parameters?

Reasons:
  • Whitelisted phrase (-2): Did you try
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Starts with a question (0.5): Did you
  • Low reputation (0.5):
Posted by: user3656651

79553287

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

I would probably set a X number of notifications in advance depending what is the frequency of user getting in app and trigger a mechanism when the app is foreground to check the notifications which are not yet delivered.

the mechanism will clean the ones not in line anymore (if you have a deviation or notification time and set back again X number or notifications).

It might not be the best optimized strategy.

You might also have check the expo notification documentation which might help you https://docs.expo.dev/versions/latest/sdk/notifications/

Br

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

79553284

Date: 2025-04-03 14:55:02
Score: 1.5
Natty:
Report link

This got much easier 5 yrs later. Its a single cell formula producing a new spilled table:
=GROUPBY(Table1[[#All],[Pers]],Table1[[#All],[App_IDs]],ARRAYTOTEXT)

Or without producing the headers it may be easier to understand:
=GROUPBY(Table1[Pers],Table1[App_IDs],ARRAYTOTEXT)

Looks like this:

enter image description here

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

79553283

Date: 2025-04-03 14:55:02
Score: 0.5
Natty:
Report link

As far as I can tell Apache NMS doesn't support connections through a SOCKS proxy.

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

79553273

Date: 2025-04-03 14:52:01
Score: 1
Natty:
Report link

fixed in the model by synchronising data length in ajax response


success: function(response, status, jqXHR) 
{ 
  var from = jqXHR.fromPage * PAGE_SIZE; 
  var count = response.d.nodes.length; data.length = data.length + count;// instead of the total data response.d.totalNodes;
 //etc..
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Sadri Lassoued

79553255

Date: 2025-04-03 14:42:58
Score: 9
Natty: 8
Report link

Rob - did you ever get an answer for this? I'm stuck on the same thing. Thanks.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • RegEx Blacklisted phrase (1.5): I'm stuck
  • RegEx Blacklisted phrase (3): did you ever get an answer
  • Low length (1.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Pat Motschenbacher

79553254

Date: 2025-04-03 14:42:58
Score: 1.5
Natty:
Report link

its a simple matter of changing the settings. on the indicator, select the indicator, right click on the lines / press the settings cog button, navigate to visual order, and click bring to front, hope this helps

Reasons:
  • Whitelisted phrase (-1): hope this helps
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Josh Parker

79553230

Date: 2025-04-03 14:33:56
Score: 2
Natty:
Report link

I was facing this error when trying to force push on my protected branch. Resolved it by enabling Allow force push flag under Repository Settings / Branch rules / Details

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

79553222

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

So, after a long analysis of this issue, I identified that's from macos-13 runner, when xcodebuildis run, the list of platform starts with :

{ platform:iOS, id:dvtdevice-DVTiPhonePlaceholder-iphoneos:placeholder, name:Any iOS Device }

Since macos-14 runner, the list starts with :

{ platform:macOS, arch:arm64, variant:Designed for [iPad,iPhone], id:0000FE00-72C76CA0FC1D03E0, name:My Mac }
{ platform:iOS, id:dvtdevice-DVTiPhonePlaceholder-iphoneos:placeholder, name:Any iOS Device }

So with macos 14 and later, xcode trye to build dependancies for the first platform, `macOS`.

I fix my issue by adding -destination "generic/platform=iOS" to xcodebuild command line.

But this add implies to install iOS Distribution certificates, not Apple Distribution certificates. (I don't find any solution to use Apple Distribution certificates)

Reasons:
  • Blacklisted phrase (1.5): any solution
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: clem

79553219

Date: 2025-04-03 14:28:55
Score: 2.5
Natty:
Report link

Problem solved with recent update Sequoia 15.4

😍

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

79553216

Date: 2025-04-03 14:28:55
Score: 1.5
Natty:
Report link

I had the same issue. Upgrade kotlin version to 2.1.0 worked for me

Reasons:
  • Whitelisted phrase (-1): I had the same
  • Whitelisted phrase (-1): worked for me
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: YOGGY

79553202

Date: 2025-04-03 14:21:53
Score: 2
Natty:
Report link

This worked for me.
https://github.com/firebase/firebase-ios-sdk/issues/14643

Basically update firebase to version 11

Reasons:
  • Whitelisted phrase (-1): This worked for me
  • Whitelisted phrase (-1): worked for me
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: nicolasmonzon0

79553201

Date: 2025-04-03 14:21:53
Score: 3
Natty:
Report link

In OpenShift clusters: kube_resourcequota

I ignore other products

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

79553199

Date: 2025-04-03 14:20:52
Score: 4.5
Natty:
Report link

In javascript?

I'm not quite an expert but, if you set up a while loop:

totals:int = 0;
for(i=0;i<return[...].users.lenght;i++){
 totals = total + return.users[i].total;
}

Not working?

Reasons:
  • RegEx Blacklisted phrase (2): working?
  • Low length (0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (0.5):
Posted by: victorvictord

79553197

Date: 2025-04-03 14:19:52
Score: 1
Natty:
Report link

I was facing same issue in a legacy project, I had need to change the
debuggable false in release in buildTypes in build.gradle file

and in manifest file application tag

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

79553191

Date: 2025-04-03 14:18:51
Score: 4.5
Natty:
Report link

They just fucked it up. You have to use a special windows syntax, almost no curl statements you find somewhere will work (e.g. with headers).

Reasons:
  • Blacklisted phrase (2): fuck
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: spyro

79553188

Date: 2025-04-03 14:17:51
Score: 2
Natty:
Report link

A NullPointerException is almost certainly a bug.

I've taken the liberty to create one in the GitHub tracker for you: https://github.com/redis/lettuce/issues/3241

I suggest we continue the conversation there.

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

79553175

Date: 2025-04-03 14:10:49
Score: 2.5
Natty:
Report link

Fixed the issue by manually enabling network permissions to the app in application, it was disabled by default for some reason. Maybe it is a security thing in Lineage OS or Android it self.

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

79553156

Date: 2025-04-03 14:02:47
Score: 1.5
Natty:
Report link

In my case I unticked "add source roots to PYTHONPATH` from my PyCharm run config.

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

79553145

Date: 2025-04-03 13:57:45
Score: 1
Natty:
Report link

Consider doing this to.

 if (e.ColumnIndex >= 1 & e.RowIndex >= 0)   
              {                    
dataGridView1.Rows[e.RowIndex].Cells[e.ColumnIndex].ToolTipText = dataGridView1.Rows[e.RowIndex].Cells[e.ColumnIndex].Value.ToString();
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: James Dean

79553140

Date: 2025-04-03 13:56:45
Score: 1
Natty:
Report link

I'm not sure this is your issue, but be aware that ~ (tilde) does NOT expand during Node.js execution or in most build tools — it’s only expanded by your shell (like zsh or bash).

If that's the problem, use the full absolute path instead

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

79553136

Date: 2025-04-03 13:53:44
Score: 1
Natty:
Report link

There is a documentation on that from PointFree - https://pointfreeco.github.io/swift-composable-architecture/main/documentation/composablearchitecture/stackbasednavigation/#Pushing-features-onto-the-stack

You need to append to the path on some action like this (e.g. on tap or whatever is your use case):

  state.path.append(.history(History.State()))
Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
Posted by: Luzo

79553134

Date: 2025-04-03 13:53:44
Score: 2
Natty:
Report link

Try command below

git remote prune origin
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Jack Salvador

79553130

Date: 2025-04-03 13:51:43
Score: 0.5
Natty:
Report link

plutil -remove IDESwiftPackageAdditionAssistantRecentlyUsedPackages ~/Library/Preferences/com.apple.dt.Xcode.plist
run it on your Terminal. Worked for me.

Reasons:
  • Whitelisted phrase (-1): Worked for me
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Kevin Jeggy

79553121

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

you can use withr::local_options(width=125).

Reasons:
  • Whitelisted phrase (-1.5): you can use
  • Low length (1.5):
  • No code block (0.5):
  • Has no white space (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: lie ardi

79553092

Date: 2025-04-03 13:36:39
Score: 4
Natty:
Report link

6 years down the line and that's still the case.....................................................

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • No latin characters (1):
  • Filler text (0.5): .....................................................
  • Low reputation (0.5):
Posted by: Fabri Ba

79553081

Date: 2025-04-03 13:32:37
Score: 1
Natty:
Report link

If your want to use JavaScript Numbers, you can try my library randomcryp. This library uses Crypto.getRandomValues() to generate cryptographically secure random numbers with 53 bits of precision. Which should be the highest precision a JS Number can handle.

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

79553075

Date: 2025-04-03 13:30:36
Score: 0.5
Natty:
Report link

It understands that the problem was on the parameter ${aws:username} . Infact this parameter is referring to the supported S3 policy keys (see the Min.io documentation for further details).

Since the solution here is including an external OpenID connection

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

79553068

Date: 2025-04-03 13:28:36
Score: 1.5
Natty:
Report link

I was toying a lot with this, and so far I have an incomplete answer but some better c++ template wizards can help me. The current code should work for std containers. It still needs work to properly allow things i can get a range from, but this helps me move forward with the desired syntax.

//This structure will take a variant that can contains containers with the same
//value_type (ints, size_t, floats, whatever). It will create a "variant iterator"
//using the variadic template and the iterator_t helper.

template <typename... ContainerTypes>
struct IterableVariantWrapper {

    //This is the part that i have to figure out yet. If the contained type
    //is NOT a container, but i can obtain a range from it, i'd like to 
    //still allow it, but haven't found the way yet.
    using VariantIter = std::variant<const_iterator_t<ContainerTypes>...>;

    //Original variant we want to iterate over.
    const std::variant<ContainerTypes...>& iterable;

    //The iterator
    struct iterator {
        VariantIter iter;

        bool operator!=(
            const iterator& other) const
        {
            return iter != other.iter;
        }
        iterator operator++()
        {
            auto advanceIter = [](auto& v) -> void { ++v; };
            std::visit(advanceIter, iter);
            return *this;
        }
        auto operator*() const
        {
            auto returnElem = [](const auto& v) { return *v; };
            return std::visit(returnElem, iter);
        }
    };

    

    auto begin()
    {
        auto getBegin = [](const auto& v) -> VariantIter {
            VariantIter iter = v.begin();
            return iter;
        };
        return iterator { std::visit(getBegin, iterable) };
    }
    auto end()
    {
        auto getEnd = [](const auto& v) -> VariantIter { return v.end(); };
        return iterator { std::visit(getEnd, iterable) };
    }
};



//Calling this with a variant that contains a container where the contained
//type is the same will build the IterableVariantWrapper structure and provide
//a range-like object
template <typename... ContainerTypes>
auto getVariantRange(
    const std::variant<ContainerTypes...>& variant)
{
    return IterableVariantWrapper { variant };
}

I was thinking that maybe having a function/struct where i could ask the type of the view i can obtain from the iterated objects may be a way to go, but I couldn't get the syntax down. For example having a function for each type that is contained in the variant where the function returns either the same object if it is already a range, or a view derived from it, and then the variant iterator deduces the types from the return type of that function.

As i see, also I still need to figure put how to support actual ranges where the sentinel is a different type too, which i guess will be the next step after the previous paragraph.

A link to a working example using this: https://godbolt.org/z/qhrbP1se6

Any comment for further improvement is greatly appreciated.

Reasons:
  • Blacklisted phrase (1): appreciated
  • Blacklisted phrase (1): help me
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Carlos

79553067

Date: 2025-04-03 13:28:36
Score: 0.5
Natty:
Report link

You may not have saved the spreadsheet after opening it in Excel but before reading it in pandas.

(H/T IanS)

Reasons:
  • Low length (1):
  • No code block (0.5):
  • High reputation (-1):
Posted by: törzsmókus

79553066

Date: 2025-04-03 13:27:34
Score: 9.5 🚩
Natty: 6.5
Report link

hello there i am also working on rplidar a1 and using slam toolbox . trying the mapping for last few days but doesnt get result . if you have counter this problem please guide me how to do it .... thanks you in advance

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Blacklisted phrase (1): guide me
  • RegEx Blacklisted phrase (2.5): please guide me how
  • RegEx Blacklisted phrase (3): thanks you in advance
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: BHAGYESH TAJNE