79819298

Date: 2025-11-13 18:25:32
Score: 1.5
Natty:
Report link

Don't do this in SQL or PL/SQL, use your application.

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

79819290

Date: 2025-11-13 18:19:30
Score: 4
Natty: 4
Report link

Check this answer, pretty well explained
https://medium.com/@slavo3dev/understanding-different-ways-to-define-components-in-react-export-function-app-vs-export-6b374fd1c94c

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

79819288

Date: 2025-11-13 18:17:29
Score: 6.5 🚩
Natty:
Report link

Execute this script to fix this:

#!/bin/bash

# Script para fazer downgrade do Docker Engine
# Uso: sudo ./docker-downgrade.sh [versão]
# Exemplo: sudo ./docker-downgrade.sh 5:27.5.1-1~ubuntu.22.04~jammy

set -e  # Parar em caso de erro

# Cores para output
RED='\033[0;31m'
GREEN='\033[0;32m'
YELLOW='\033[1;33m'
NC='\033[0m' # No Color

# Versão padrão (você pode mudar aqui ou passar como argumento)
DEFAULT_VERSION="5:27.5.1-1~ubuntu.22.04~jammy"
VERSION="${1:-$DEFAULT_VERSION}"

echo -e "${YELLOW}=== Docker Engine Downgrade Script ===${NC}"
echo -e "Versão alvo: ${GREEN}$VERSION${NC}"
echo ""

# Verificar se está rodando como root
if [ "$EUID" -ne 0 ]; then
    echo -e "${RED}ERRO: Este script precisa ser executado como root (use sudo)${NC}"
    exit 1
fi

# Mostrar versão atual
echo -e "${YELLOW}=== Versão atual do Docker ===${NC}"
docker version 2>/dev/null || echo "Docker não está rodando ou não está instalado"
echo ""

# Confirmar com o usuário
echo -e "${YELLOW}=== AVISO ===${NC}"
echo "Este script irá:"
echo "  1. Fazer backup da configuração atual"
echo "  2. Parar o Docker"
echo "  3. Remover a versão atual"
echo "  4. Instalar a versão $VERSION"
echo "  5. Bloquear atualizações automáticas"
echo ""
read -p "Deseja continuar? (s/N) " -n 1 -r
echo ""
if [[ ! $REPLY =~ ^[Ss]$ ]]; then
    echo -e "${RED}Operação cancelada pelo usuário${NC}"
    exit 1
fi

# Verificar se há containers rodando
echo -e "${YELLOW}=== Verificando containers em execução ===${NC}"
RUNNING_CONTAINERS=$(docker ps -q 2>/dev/null | wc -l)
if [ "$RUNNING_CONTAINERS" -gt 0 ]; then
    echo -e "${YELLOW}AVISO: Há $RUNNING_CONTAINERS container(s) em execução${NC}"
    docker ps --format "table {{.Names}}\t{{.Status}}\t{{.Ports}}"
    echo ""
    read -p "Deseja parar os containers antes de continuar? (s/N) " -n 1 -r
    echo ""
    if [[ $REPLY =~ ^[Ss]$ ]]; then
        echo "Parando containers..."
        docker compose down 2>/dev/null || docker stop $(docker ps -q) 2>/dev/null || true
    fi
fi
echo ""

# Backup da configuração
echo -e "${YELLOW}=== Fazendo backup da configuração atual ===${NC}"
BACKUP_DIR="/etc/docker.backup.$(date +%Y%m%d_%H%M%S)"
if [ -d "/etc/docker" ]; then
    cp -r /etc/docker "$BACKUP_DIR"
    echo -e "${GREEN}✓ Backup criado em: $BACKUP_DIR${NC}"
else
    echo -e "${YELLOW}⚠ Diretório /etc/docker não existe, pulando backup${NC}"
fi
echo ""

# Parar o Docker
echo -e "${YELLOW}=== Parando Docker ===${NC}"
systemctl stop docker.socket 2>/dev/null || true
systemctl stop docker 2>/dev/null || true
echo -e "${GREEN}✓ Docker parado${NC}"
echo ""

# Remover versão atual
echo -e "${YELLOW}=== Removendo versão atual ===${NC}"
apt-mark unhold docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin 2>/dev/null || true
apt-get remove -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin 2>/dev/null || true
echo -e "${GREEN}✓ Versão atual removida${NC}"
echo ""

# Verificar se a versão existe no repositório
echo -e "${YELLOW}=== Verificando disponibilidade da versão ===${NC}"
if ! apt-cache madison docker-ce | grep -q "$VERSION"; then
    echo -e "${RED}ERRO: Versão $VERSION não encontrada no repositório${NC}"
    echo ""
    echo "Versões disponíveis:"
    apt-cache madison docker-ce | head -10
    exit 1
fi
echo -e "${GREEN}✓ Versão encontrada no repositório${NC}"
echo ""

# Instalar versão específica
echo -e "${YELLOW}=== Instalando versão $VERSION ===${NC}"
apt-get update -qq
apt-get install -y \
  docker-ce=$VERSION \
  docker-ce-cli=$VERSION \
  containerd.io \
  docker-buildx-plugin \
  docker-compose-plugin

echo -e "${GREEN}✓ Nova versão instalada${NC}"
echo ""

# Bloquear atualizações automáticas
echo -e "${YELLOW}=== Bloqueando atualizações automáticas ===${NC}"
apt-mark hold docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
echo -e "${GREEN}✓ Pacotes bloqueados para atualização${NC}"
echo ""

# Iniciar Docker
echo -e "${YELLOW}=== Iniciando Docker ===${NC}"
systemctl start docker
systemctl enable docker
echo -e "${GREEN}✓ Docker iniciado${NC}"
echo ""

# Aguardar Docker inicializar
echo "Aguardando Docker inicializar..."
sleep 3

# Verificar instalação
echo -e "${YELLOW}=== Verificando instalação ===${NC}"
if docker version &>/dev/null; then
    echo -e "${GREEN}✓ Docker está funcionando corretamente${NC}"
    echo ""
    docker version
else
    echo -e "${RED}✗ ERRO: Docker não está funcionando corretamente${NC}"
    echo "Verifique os logs com: sudo journalctl -u docker -n 50"
    exit 1
fi

echo ""
echo -e "${GREEN}=== Downgrade concluído com sucesso! ===${NC}"
echo ""
echo "Próximos passos:"
echo "  1. Se você parou os containers, inicie-os novamente com: docker compose up -d"
echo "  2. Para desbloquear atualizações futuras: sudo apt-mark unhold docker-ce docker-ce-cli"
echo "  3. Backup da configuração anterior em: $BACKUP_DIR"
echo ""
Reasons:
  • Blacklisted phrase (3): você
  • Blacklisted phrase (1): está
  • Blacklisted phrase (1): não
  • RegEx Blacklisted phrase (2): encontrada
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Diogo Coutinho

79819280

Date: 2025-11-13 18:09:27
Score: 5
Natty:
Report link
ADAPTER = CloudAdapter(ConfigurationBotFrameworkAuthentication(CONFIG))

what should be inside Config

somebody Please help me on this

import asyncio
import json
from aiohttp import web
from botbuilder.core import TurnContext
from botbuilder.integration.aiohttp import CloudAdapter, ConfigurationBotFrameworkAuthentication
from botbuilder.schema import Activity
import jwt  # pip install pyjwt

# ----- Bot configuration -----
CONFIG = {
    "appId": "",
    "appSecret": ""
}

# Setup Bot Authentication
bot_auth = ConfigurationBotFrameworkAuthentication(CONFIG)

# Create Cloud Adapter
adapter = CloudAdapter(bot_auth)


# ----- Bot logic -----
async def bot_logic(turn_context: TurnContext):
    if turn_context.activity.type == "message":
        await turn_context.send_activity(f"You said: {turn_context.activity.text}")
    else:
        await turn_context.send_activity(f"[{turn_context.activity.type} event received]")


# ----- HTTP request handler -----
async def messages(req: web.Request) -> web.Response:
    # Print headers
    print("\n--- Headers ---")
    for k, v in req.headers.items():
        print(f"{k}: {v}")

    # Print incoming JSON
    body = await req.json()
    print("\n--- Incoming Activity ---")
    print(json.dumps(body, indent=4))

    # Print and decode Authorization header
    auth_header = req.headers.get("Authorization", "")
    print("\n--- Authorization Header ---")
    print(auth_header)

    if auth_header.startswith("Bearer "):
        token = auth_header[7:]
        try:
            decoded = jwt.decode(token, options={"verify_signature": False})
            print("\n--- Decoded JWT Token ---")
            print(json.dumps(decoded, indent=4))
        except Exception as e:
            print("Error decoding JWT token:", e)

    # Deserialize Activity
    activity = Activity().deserialize(body)

    # Process the activity
    try:
        await adapter.process_activity(auth_header, activity, bot_logic)
    except Exception as e:
        print("\n--- Adapter Error ---")
        print(e)

    return web.json_response({"status": "ok"})


# ----- Setup web server -----
app = web.Application()
app.router.add_post("/api/messages", messages)

if __name__ == "__main__":
    print("======= Running on http://localhost:3978 =======")
    web.run_app(app, host="0.0.0.0", port=3978)

I gave config something like this

I could find proper documentation for cloud adaptor
[Errno Unauthorized. Invalid AppId passed on token: ]

I'm getting unauthorized error. Due to app id is passed as None while creating cloudadaptor. Even though I gave proper app id it's not aligning properly

Reasons:
  • Blacklisted phrase (1): help me
  • RegEx Blacklisted phrase (3): Please help me
  • RegEx Blacklisted phrase (1): I'm getting unauthorized error
  • Long answer (-1):
  • Has code block (-0.5):
  • Starts with a question (0.5): what
  • Low reputation (1):
Posted by: Premji Amaran

79819279

Date: 2025-11-13 18:08:26
Score: 3
Natty:
Report link

I updated ggdist to version 3.3.3 and no longer had this issue.

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

79819278

Date: 2025-11-13 18:08:26
Score: 0.5
Natty:
Report link

I am working in R on Mac and have a related question.
I first had the same error as described above.
Run this code in the R console before deploying the app:

install.packages("plotly", repos = "https://cran.rstudio.com/")

Include this code at the beginning of |app.R"

library(ggplot2) # dependency
library(stats) # dependency
library(graphics) # dependency
library(plotly)

I am still trying to deploy an app that includes a plotly figure on shinyapps.io. When running the app locally, it works fine. However, when deploying the app on shinyapps.io, I get this error:

Error in plotlyOutput("name_of_sunburst_plot")
could not find function "plotlyOutput"

In ui, I use:

sunburst_finance_count
})
             tabPanel("Panel name", 
                      h4("TextText"), 
                      p("TextText."), 
                      plotly::plotlyOutput(outputID="instruments_sunburst"
                                   # , height = "800px"
                                   )),

In server, I use the following code (sunburstDF and custom_colors are defined in global.R)

output$instruments_sunburst <- renderPlotly({
sunburst_finance_count <-
plot_ly(
data = sunburstDF_inst,
ids = ~ids,
labels = ~labels,
parents = ~parents,
values = ~values,
type = 'sunburst',
branchvalues = 'total',
hoverinfo = 'text',
textinfo = 'label+percent parent', # Add the count to the textinfo by adding +value
hovertext = ~hoverinfo,
insidetextorientation = "radial", # Adjust text orientation
marker = list(
colors = custom_colors_instruments # Apply the custom color scale
)
)
})

I appreciate any advice on how to address this error.

Reasons:
  • RegEx Blacklisted phrase (1): I get this error
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: blue_elephant

79819277

Date: 2025-11-13 18:07:26
Score: 2
Natty:
Report link

Show us the complete HTTP requests for both situations. Is there a difference in what each method is doing?

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • High reputation (-2):
Posted by: brian d foy

79819263

Date: 2025-11-13 17:53:22
Score: 2.5
Natty:
Report link

yo creo que a la hora de usar componentes de Bootstrap es difícil de editarlos estilos de estos mismos, pero se puede por medio del mismo Bootstrap, USANDO EL CODIGO DE BOOTSTRAP PODEMOS CAMBIAR EL COLOR DEL BORDER USANDO LA CLASE BORDER BORDER-WHITE

<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-rbsA2VBKQhggwzxH7pPCaAqO46MgnOM80zW1RWuH61DGLwZJEdK2Kadq2F9CUG65" crossorigin="anonymous">
<main class="bg-black">
<div class="card border border-white" style="width: 800px; border-radius: 23px; background-color: rgb(35, 33, 33); color: white;">
  <h5 class="card-header" style="color: white">Time Managing</h5>
  <div class="card-body" style="color: white">
    <h5 class="card-title">PRIMER TITULO</h5>
    <p class="card-text">CONTENIDO</p>
    <a href="#" class="btn btn-primary">MAS</a>
  </div>
</div>
</main>

Reasons:
  • RegEx Blacklisted phrase (2.5): mismo
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Luis David Diaz Hoil

79819259

Date: 2025-11-13 17:50:21
Score: 1.5
Natty:
Report link

To this day I suspect it’s related to my home router or ISP (though I can’t prove it).

It works fine on other connections like my mobile hotspot or office network.
Switching to Cloudflare DNS didn’t help.

The only workaround I’ve found is disabling:
Docker Desktop → Settings → General → "Use containerd for pulling and storing images"

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

79819258

Date: 2025-11-13 17:49:21
Score: 2.5
Natty:
Report link

Kevin from the Colab team. We just released an open source VS Code extension for connecting notebooks in VS Code to Colab runtimes. Give it a try and let me know what you think - here, or on the GitHub repo's discussions or issues.

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

79819257

Date: 2025-11-13 17:49:21
Score: 3.5
Natty:
Report link

This is not relevant to the question though, anybody coming here knows this

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

79819254

Date: 2025-11-13 17:48:20
Score: 1
Natty:
Report link

I like to clarify usage:

SETUPTOOLS_SCM_PRETEND_VERSION_FOR_MY_PACKAGE=$VERSION

That means if I have in pyproject.toml:

[project]
name = "qc-iodata"

the right forms is:

SETUPTOOLS_SCM_PRETEND_VERSION_FOR_QC_IODATA

So I can do in bash:
export SETUPTOOLS_SCM_PRETEND_VERSION_FOR_QC_IODATA=1.0.0a8

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

79819253

Date: 2025-11-13 17:46:20
Score: 1
Natty:
Report link

https://www.baeldung.com/java-custom-truststore article with a very similar code approach. Suggests another simple option: merge the system keystore with yours. (presumably needs to be re-run after system updates)

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

79819244

Date: 2025-11-13 17:37:17
Score: 1.5
Natty:
Report link

"Statics" get turned into object instances when the number of parameters used to transport state becomes an issue. The alternative then is to create the object; "modify it"; then fire it off. You then might find it is re-useable after all. I like delegates for inserting custom logic in an inner loop (action delegate); or adding a "where" function delegate to a LINQ query that can be called by many different callers. But this also evolves over time as patterns become more evident.

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

79819238

Date: 2025-11-13 17:33:16
Score: 6.5
Natty:
Report link

thanks, and i can turn the date and time into a timestamp manually and set it as the index of the dataframe for then render that into a plotly line for example?

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Self-answer (0.5):
  • Single line (0.5):
  • Looks like a comment (1):
  • Low reputation (0.5):
Posted by: Juan Siécola

79819213

Date: 2025-11-13 17:18:12
Score: 5
Natty:
Report link

En react los componentes select y option son nativos, no se les puede dar la personalización que se le quisiera dar, pero es posible atreves de muchas alternativas, por ejemplo a mi se me ocurrió: switch case para manejar el estado isClose, setIsClose, así seteamos los datos y hacemos que aparzma nuestro menu cuando queramos

aqui es en html pero seria algo similar, lo e sacado de un proyecto de mi escuela, espero te sirva

<!DOCTYPE html>
<html lang="es">
<head>
    <meta charset="UTF-8">
    <title>Menú JS Puro</title>
</head>
<body>
    <div id="root"></div>

    <script>
    document.addEventListener('DOMContentLoaded', function() {
    
    function crearMenuConJavaScriptPuro() {
        let seccionActiva = 'inicio';
        let isClose = true;

        const actualizarContenido = (contenidoElemento, botones) => {
            
            switch (seccionActiva) {
                case 'inicio':
                    contenidoElemento.innerHTML = '<h3>Página Principal</h3><p>Haz clic en el botón para desplegar las opciones.</p>';
                    break;
                case 'productos':
                    contenidoElemento.innerHTML = '<h3>Nuestros Productos</h3><ul><li>Laptop Pro - $1200</li><li>Monitor Ultra HD - $350</li></ul>';
                    break;
                case 'contacto':
                    contenidoElemento.innerHTML = '<h3>Contáctanos</h3><p>[email protected]</p>';
                    break;
            }

            botones.forEach(btn => {
                btn.style.backgroundColor = 'white';
                btn.style.color = '#007bff';
                btn.style.fontWeight = 'normal';

                if (btn.dataset.seccion === seccionActiva) {
                    btn.style.backgroundColor = '#007bff';
                    btn.style.color = 'white';
                    btn.style.fontWeight = 'bold';
                }
            });
        };

        const toggleMenu = (navLinksElemento, toggleBtnElemento) => {
            isClose = !isClose;

            navLinksElemento.style.display = isClose ? 'none' : 'flex';
            toggleBtnElemento.textContent = isClose ? 'Abrir' : 'Cerrar';
        };

        const estilos = {
            contenedor: {
                fontFamily: 'Arial, sans-serif',
                maxWidth: '600px',
                margin: '20px auto',
                border: '1px solid #ccc',
                padding: '15px',
                borderRadius: '8px',
            },
            navBar: {
                display: 'flex',
                alignItems: 'center',
                justifyContent: 'space-between',
                paddingBottom: '10px',
            },
            navLinks: {
                display: 'none',
                flexDirection: 'column',
                gap: '5px',
                marginTop: '10px',
                paddingTop: '10px',
                borderTop: '1px solid #eee',
            },
            toggleButton: {
                padding: '10px 15px',
                border: '1px solid #333',
                backgroundColor: '#f0f0f0',
                cursor: 'pointer',
                borderRadius: '4px',
                fontWeight: 'bold',
            },
            botonBase: {
                padding: '10px 15px',
                border: '1px solid #007bff',
                backgroundColor: '#fff',
                color: '#007bff',
                cursor: 'pointer',
                borderRadius: '4px',
                transition: 'background-color 0.3s, color 0.3s',
                textAlign: 'left',
            },
            botonActivo: {
                backgroundColor: '#007bff',
                color: 'white',
                fontWeight: 'bold',
            },
            contenido: {
                marginTop: '15px',
                padding: '10px',
                border: '1px solid #eee',
                borderRadius: '4px',
            },
        };

        const menuContainer = document.createElement('div');
        Object.assign(menuContainer.style, estilos.contenedor);

        const navBar = document.createElement('div');
        Object.assign(navBar.style, estilos.navBar);
        
        const title = document.createElement('span');
        title.textContent = 'Menú Principal';
        Object.assign(title.style, {fontWeight: 'bold', fontSize: '1.2em'});

        const toggleBtn = document.createElement('button');
        toggleBtn.id = 'toggleButton';
        toggleBtn.textContent = 'Abrir';
        Object.assign(toggleBtn.style, estilos.toggleButton);

        const navLinks = document.createElement('nav');
        navLinks.id = 'navLinks';
        Object.assign(navLinks.style, estilos.navLinks);
        
        const mainContent = document.createElement('main');
        mainContent.id = 'menuContenido';
        Object.assign(mainContent.style, estilos.contenido);
        
        navBar.appendChild(title);
        navBar.appendChild(toggleBtn);
        menuContainer.appendChild(navBar);

        const botonesSeccion = [];
        const secciones = ['inicio', 'productos', 'contacto'];
        secciones.forEach(seccion => {
            const btn = document.createElement('button');
            btn.textContent = seccion.charAt(0).toUpperCase() + seccion.slice(1);
            btn.className = 'menu-button';
            btn.dataset.seccion = seccion;
            Object.assign(btn.style, estilos.botonBase);
            
            btn.addEventListener('click', () => {
                seccionActiva = seccion;
                actualizarContenido(mainContent, botonesSeccion); 
            });
            navLinks.appendChild(btn);
            botonesSeccion.push(btn);
        });

        menuContainer.appendChild(navLinks);
        
        const hr = document.createElement('hr');
        Object.assign(hr.style, { border: 'none', height: '1px', backgroundColor: '#ccc', margin: '15px 0' });
        menuContainer.appendChild(hr);

        menuContainer.appendChild(mainContent);

        toggleBtn.addEventListener('click', () => toggleMenu(navLinks, toggleBtn));
        
        actualizarContenido(mainContent, botonesSeccion); 
        
        return menuContainer;
    }

    const rootElement = document.getElementById('root');
    if (rootElement) {
        rootElement.appendChild(crearMenuConJavaScriptPuro());
    }
    });
    </script>
</body>
</html>

Reasons:
  • Blacklisted phrase (2): espero
  • Blacklisted phrase (1.5): sirva
  • Blacklisted phrase (2): crear
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Luis David Diaz Hoil

79819209

Date: 2025-11-13 17:14:11
Score: 0.5
Natty:
Report link

Your two snippets are not equivalent as pointed out by @canton7.

That being said, this looks like a X-Y-Question and my advice would be to ask the actual question in Q&A Format.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • User mentioned (1): @canton7
  • High reputation (-2):
Posted by: Fildor

79819189

Date: 2025-11-13 17:00:07
Score: 2
Natty:
Report link

I am almost certainly going to get told off as this isn't a CrossValidated post, but from a statistical perspective, don't.

See: https://en.wikipedia.org/wiki/Multiple_comparisons_problem

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

79819188

Date: 2025-11-13 16:59:06
Score: 1
Natty:
Report link

@canton7 That snippet is not equivalent, though. It would execute DoSomethingElse() if both are true, while the original does not.

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • User mentioned (1): @canton7
  • Single line (0.5):
  • Looks like a comment (1):
  • High reputation (-2):
Posted by: Fildor

79819186

Date: 2025-11-13 16:58:06
Score: 0.5
Natty:
Report link

In C you'd also have the option of a switch fall-through (admitting DoSomethingElse() doesn't require DoSomething() to be executed first) but C# doesn't allow for it. But, going from the name, are you writing a state machine? If so, you always have the choice of having the two blocks being methods called on your current state and which potentially returns the next state. Which could be better (or not) depending on if you have, say, other states calling only DoSomethingElse() and how many states you have in total.

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: arjanen

79819184

Date: 2025-11-13 16:57:05
Score: 0.5
Natty:
Report link

One approch to fix this is to use one more dashed line with same background as of page background.

Please refer to following code (its same as of you just some changes):

import { useEffect, useLayoutEffect, useRef, useState } from "react";
import gsap from "gsap";

interface BoxItem {
  label: string;
  color: string;
}

interface Line {
  x1: number;
  y1: number;
  x2: number;
  y2: number;
}

const boxData: BoxItem[] = [
  { label: "Event", color: "#ff6b6b" },
  { label: "Date", color: "#4dabf7" },
  { label: "Fuel", color: "#f06595" },
  { label: "Message", color: "#51cf66" },
  { label: "Work", color: "#d0bfff" },
  { label: "Data", color: "#74c0fc" },
  { label: "Food", color: "#ffd43b" },
  { label: "Style", color: "#ced4da" },
];

export default function Home() {
  const containerRef = useRef<HTMLDivElement | null>(null);
  const centerBoxRef = useRef<HTMLDivElement | null>(null);
  const boxRefs = useRef<(HTMLDivElement | null)[]>([]);

  const [lines, setLines] = useState<Line[]>([]);
  const [dimensions, setDimensions] = useState({ width: 0, height: 0 });
  const [activeLines, setActiveLines] = useState<Record<number, boolean>>({});
  const timeoutRefs = useRef<any>({});
  const animatingLines = useRef<Set<number>>(new Set());

  // Track container size
  useEffect(() => {
    const updateDimensions = () => {
      if (containerRef.current) {
        setDimensions({
          width: containerRef.current.offsetWidth,
          height: containerRef.current.offsetHeight,
        });
      }
    };
    updateDimensions();
    window.addEventListener("resize", updateDimensions);
    return () => window.removeEventListener("resize", updateDimensions);
  }, []);

  // Calculate line positions
  useLayoutEffect(() => {
    const updateLines = () => {
      if (!centerBoxRef.current || !containerRef.current) return;

      const containerRect = containerRef.current.getBoundingClientRect();
      const centerRect = centerBoxRef.current.getBoundingClientRect();
      const centerX = centerRect.left - containerRect.left + centerRect.width / 2;
      const centerY = centerRect.top - containerRect.top + centerRect.height / 2;

      const newLines: Line[] = boxRefs.current.map((box) => {
        if (!box) return { x1: 0, y1: 0, x2: 0, y2: 0 };
        const boxRect = box.getBoundingClientRect();
        const x2 = boxRect.left - containerRect.left + boxRect.width / 2;
        const y2 = boxRect.top - containerRect.top + boxRect.height / 2;
        return { x1: centerX, y1: centerY, x2, y2 };
      });

      setLines(newLines);
    };

    updateLines();
    const observer = new ResizeObserver(updateLines);
    if (containerRef.current) observer.observe(containerRef.current);
    return () => observer.disconnect();
  }, [dimensions]);

  const calculateCurvePath = (line: Line) => {
    const cpX = (line.x1 + line.x2) / 2 + (line.y2 - line.y1) * -0.21;
    const cpY = (line.y1 + line.y2) / 2 - (line.x2 - line.x1) * -0.21;
    return {
      path: `M${line.x1},${line.y1} Q${cpX},${cpY} ${line.x2},${line.y2}`,
    };
  };

const animateLine = (index: number, color: string) => {
  const path = document.getElementById(`animated-line-${index}`) as SVGPathElement | null;
  if (!path || animatingLines.current.has(index)) return;

  animatingLines.current.add(index);

  const length = path.getTotalLength();

  // ✅ Key fix: make one full-length dash to reveal progressively
  path.style.strokeDasharray = `${length}`;
  path.style.strokeDashoffset = `${length}`;
  path.style.stroke = color;
  path.style.opacity = "1";

  gsap.to(path, {
    strokeDashoffset: 0,
    duration: 0.8,
    ease: "power1.inOut",
    onComplete: () => {
      setActiveLines((prev) => ({ ...prev, [index]: true }));
      timeoutRefs.current[index] = setTimeout(() => reverseLine(index), 2000);
    },
  });
};

  const reverseLine = (index: number) => {
    const path = document.getElementById(`animated-line-${index}`) as SVGPathElement | null;
    if (!path) return;

    const length = path.getTotalLength();
    gsap.to(path, {
      strokeDashoffset: length,
      duration: 0.6,
      ease: "power2.inOut",
      onComplete: () => {
        path.style.opacity = "0";
        animatingLines.current.delete(index);
        setActiveLines((prev) => ({ ...prev, [index]: false }));
      },
    });
  };

  const handleBoxClick = (index: number, color: string) => {
    if (animatingLines.current.has(index)) return;

    if (timeoutRefs.current[index]) {
      clearTimeout(timeoutRefs.current[index]);
    }

    if (!activeLines[index]) {
      animateLine(index, color);
    }
  };

  const handleCenterClick = () => {
    boxData.forEach((box, i) => {
      if (!activeLines[i] && !animatingLines.current.has(i)) {
        animateLine(i, box.color);
      }
    });
  };

  return (
    <div
      ref={containerRef}
      className="relative w-full h-screen bg-gradient-to-br from-pink-100 to-blue-100 overflow-hidden"
    >
      <svg className="absolute top-0 left-0 w-full h-full pointer-events-none">
        <defs>
          <linearGradient id="line-gradient" x1="0%" y1="0%" x2="100%" y2="0%">
            <stop offset="0%" stopColor="#cccccc" />
            <stop offset="100%" stopColor="#cccccc" stopOpacity="0.8" />
          </linearGradient>

          {/* New: background-matching gradient */}
          <linearGradient id="bg-gradient" x1="0%" y1="0%" x2="100%" y2="100%">
            <stop offset="0%" stopColor="#ffe3ec" />  {/* matches from-pink-100 */}
            <stop offset="100%" stopColor="#d0ebff" /> {/* matches to-blue-100 */}
          </linearGradient>
        </defs>

        {lines.map((line, i) => {
          const { path } = calculateCurvePath(line);
          return (
            <g key={i}>
              {/* Static gray dashed line */}
              <path
                id={`dashed-line-${i}`}
                d={path}
                stroke="url(#line-gradient)"
                strokeWidth="2"
                strokeDasharray="8, 4" 
                fill="none"
              />
              {/* Animated colored dashed overlay */}
              <path
                id={`animated-line-${i}`}
                d={path}
                stroke="transparent"
                strokeWidth="2"
                strokeDasharray="8, 4"
                fill="none"
                style={{ opacity: 0 }}
              />
              {/* static white or background gap line */}
              <path
                id={`dashed-line-${i}`}
                d={path}
                stroke="url(#bg-gradient)"
                strokeWidth="2"
                strokeDasharray="8, 8"
                fill="none"
              />
              {/* Endpoint circle */}
              <circle cx={line.x2} cy={line.y2} r="6" fill={boxData[i].color} />
            </g>
          );
        })}
      </svg>

      {/* Center Circle */}
      <div
        ref={centerBoxRef}
        onClick={(e) => {
          e.stopPropagation();
          handleCenterClick();
        }}
        className="absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-16 h-16 md:w-24 md:h-24 bg-white rounded-full shadow-lg grid place-items-center font-bold text-lg md:text-xl cursor-pointer z-10"
      >
        Any
      </div>

      {/* Outer Boxes */}
      {boxData.map((box, i) => {
        const angle = (360 / boxData.length) * i;
        const radius = Math.min(dimensions.width, dimensions.height) * 0.35;
        const rad = (angle * Math.PI) / 180;
        const centerX = dimensions.width / 2;
        const centerY = dimensions.height / 2;
        const x = centerX + radius * Math.cos(rad);
        const y = centerY + radius * Math.sin(rad);

        return (
          <div
            key={i}
            ref={(el) => (boxRefs.current[i] = el)}
            onClick={(e) => {
              e.stopPropagation();
              handleBoxClick(i, box.color);
            }}
            className="absolute w-14 h-14 md:w-20 md:h-20 rounded-full shadow grid place-items-center text-xs md:text-sm font-bold cursor-pointer text-white"
            style={{
              backgroundColor: box.color,
              left: `${x}px`,
              top: `${y}px`,
              transform: "translate(-50%, -50%)",
            }}
          >
            {box.label}
          </div>
        );
      })}
    </div>
  );
}

enter image description here

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

79819183

Date: 2025-11-13 16:55:05
Score: 1.5
Natty:
Report link

I had a duplicated column in my feature list. Once I dropped the duplicated feature, it worked!

Reasons:
  • Whitelisted phrase (-1): it worked
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Renata Ghisloti

79819180

Date: 2025-11-13 16:53:04
Score: 1.5
Natty:
Report link

I have created a plugin for this:

https://github.com/fenjen/vim-plugin-vry

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

79819174

Date: 2025-11-13 16:46:03
Score: 2
Natty:
Report link

You can replace BS variables in your own custom variables.

Adding `$card-color: yellow;` for example, will make any text under .card yellow.

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

79819172

Date: 2025-11-13 16:46:03
Score: 2
Natty:
Report link
if (StateA)
{
    DoSomething();
}
else if (StateB)
{
    DoSomething();
    DoSomethingElse();
}

Is the same as:


DoSomething();
if (StateB)
{
    DoSomethingElse();
}
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Starts with a question (0.5): Is the
  • Low reputation (1):
Posted by: Wery848

79819171

Date: 2025-11-13 16:45:03
Score: 0.5
Natty:
Report link

No, and transform isn't applied either, see: updating SVG animateMotion path using JavaScript

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • High reputation (-2):
Posted by: Danny '365CSI' Engelman

79819160

Date: 2025-11-13 16:34:00
Score: 2
Natty:
Report link

can you give a more meaningful example for example post relevant code that pertains to your question

or can this be converted to a switch statement for example

do a simple google search on the following - c# case statement with either or condition

Reasons:
  • RegEx Blacklisted phrase (2.5): can you give
  • Low length (0.5):
  • No code block (0.5):
  • Starts with a question (0.5): can you give a
  • High reputation (-2):
Posted by: MethodMan

79819158

Date: 2025-11-13 16:34:00
Score: 3
Natty:
Report link

what worked for me in 2025 is File > Print > Next > Print as PDF

Reasons:
  • Whitelisted phrase (-1): worked for me
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): what
  • Low reputation (1):
Posted by: Ridodo

79819157

Date: 2025-11-13 16:34:00
Score: 0.5
Natty:
Report link

This matches this issue, which has some Googly advice in its comments.

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

79819153

Date: 2025-11-13 16:31:59
Score: 1
Natty:
Report link

They can't, because the user might change the font size.

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • High reputation (-2):
Posted by: Chris B.

79819151

Date: 2025-11-13 16:27:58
Score: 1
Natty:
Report link
<div v-bind:class="`bg-[${item.color}]`" class="rounded-full px-2">
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Has no white space (0.5):
  • Single line (0.5):
  • High reputation (-1):
Posted by: Sadee

79819147

Date: 2025-11-13 16:24:57
Score: 2.5
Natty:
Report link

Can label or Text be fixed width? If not I can only think of CustomMultiChildLayout; But you might also want twoDimensionScrollView if it contains more than just single group.

Reasons:
  • RegEx Blacklisted phrase (1.5): fixed width?
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Can
  • High reputation (-2):
Posted by: Md. Yeasin Sheikh

79819137

Date: 2025-11-13 16:18:55
Score: 6
Natty:
Report link

Thank you all for your help on this. I'm new, so I really appreciate it.

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • RegEx Blacklisted phrase (1.5): I'm new
  • Low length (1.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Student Driver

79819130

Date: 2025-11-13 16:13:53
Score: 1
Natty:
Report link

For me the simplest way (but requires a unix-like enviroment):

NULL_CHAR=$(head -c1 /dev/zero)

# check value with:
echo -n "$NULL_CHAR"|hexdump -C 
00000000  00                                                |.|
00000001
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Gil Brandao

79819129

Date: 2025-11-13 16:13:53
Score: 4
Natty:
Report link

After Your's sugestion digest value for reference is ok. But now i'm trying to calculate SignatureValue. And the question is when You calculate it You use the same method to calculate c14N on SignedInfo?

I tried use your method and just use C14N on SignedInfo but i got error.
I use <ds:CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" />

Reasons:
  • RegEx Blacklisted phrase (2): but i got error
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: user31872933

79819125

Date: 2025-11-13 16:09:52
Score: 4.5
Natty:
Report link

I believe it could also be done by swift package resolve

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

79819124

Date: 2025-11-13 16:07:51
Score: 1
Natty:
Report link

Comments have been broken on SO for a while now so I will post a new answer here even though I just wanted to reply to Roemer and scheinwerfer in Is there a way to open a folder in a container from the VSCode command line using the remote-containers extension? because I have a solution to their problem.

You can call wslpath -w to translate the path inside WSL to the path you need to encode. (That is what the script I mentioned in my comment does to support WSL, feel free to steal from it.)

Reasons:
  • Blacklisted phrase (1): Is there a way
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: KnorpelSenf

79819117

Date: 2025-11-13 16:03:50
Score: 1.5
Natty:
Report link

recently i've been through this problem and to try to solve i searched in colab documents and foruns and i dont found no way to plot on Colab. But, i discovered the Jupyter Lab, that is similar to Colab can handle with markdown and it's easy to use, beside it runs on your own Computer, which can be bad in some ways.
Here is an example image of Jupyter Lab with Plotly:
Plotly in Jupyter

And i found a comparative of Colab and Jupyter:
https://www.geeksforgeeks.org/blogs/google-collab-vs-jupyter-notebook/

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

79819111

Date: 2025-11-13 15:59:48
Score: 0.5
Natty:
Report link

If you don't use prisma.config.ts and also don't want to use dotenv, you can simply remove prisma.config.ts and variables should become visible.

When using prisma.config.ts, environment variables from .env files are not automatically loaded.

link: Prisma documentation

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

79819102

Date: 2025-11-13 15:54:46
Score: 2
Natty:
Report link

The OP was for iOS 26.0. Meanwhile iOS 26.1 fixed the issue. .isEnabled property disables the tab bar item (goes gray) and prohibits user interaction (can't be selected).

@matt's answer works fine.

func tabBarController(\_ tabBarController: UITabBarController, shouldSelect viewController: UIViewController) -> Bool {  
    if #available(iOS 26.0, *) { // run only if iOS >= 26.0  
        if #available(iOS 26.1, *) { // run only if iOS >= 26.1 (bug was fixed)
            return true  
        }  
        if (condition_when_tab_bar_item_should_be_disabled) {  
            return false  
        }  
    }  
    return true  
}  

Changing my code back to the .isEnabled state from before iOS 26, I noticed that it doesn't work correctly when using .isEnabled inside DispatchQueue.main.async. It is simply ignored like it was for iOS 26. Flagging the property or layout for an update doesn't do anything either. However re-setting the tab bar item image makes the .isEnabled property change to be considered.

@objc func disableTab() {  
    DispatchQueue.main.async { // required otherwise crashes  
        self.tabBar.items?\[0\].isEnabled = false          
//        if #available(iOS 26.0, *) {  
//            self.tabBar.updatePropertiesIfNeeded() // doesn't do anything  
//        }  
//        self.tabBar.setNeedsLayout() // doesn't do anything  
//        self.tabBar.layoutIfNeeded() // doesn't do anything  
        if #available(iOS 26.0, *) { // this works!  
            let image = self.tabBar.items?\[2\].image  
            self.tabBar.items?\[2\].image = nil  
            self.tabBar.items?\[2\].image = image  
        }  
    }  
}

Hope this helps somebody having the same issue.

Reasons:
  • Whitelisted phrase (-1): Hope this helps
  • Long answer (-1):
  • Has code block (-0.5):
  • Me too answer (2.5): having the same issue
  • User mentioned (1): @matt's
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: geohei

79819096

Date: 2025-11-13 15:50:45
Score: 5
Natty:
Report link

@President James K. Polk thanks for the clarifying question, I worded it poorly. In this case it's the server authenticating to our client application, where we get a 'unable to get local issuer certificate' error if the certificate is not referenced in the call.

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Low length (0.5):
  • No code block (0.5):
  • User mentioned (1): @President
  • Self-answer (0.5):
  • Single line (0.5):
  • Looks like a comment (1):
  • Low reputation (0.5):
Posted by: Chris Decker

79819076

Date: 2025-11-13 15:40:43
Score: 0.5
Natty:
Report link

Use rclone's delete command

rclone delete remote:path --rmdirs --progress

The purge command failed:

ERROR : S3 bucket remote: Failed to read versioning status, assuming unversioned: operation error S3: GetBucketVersioning, https response error StatusCode: 403, RequestID: , HostID: , api error AccessDenied: Access Denied

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

79819066

Date: 2025-11-13 15:34:41
Score: 1
Natty:
Report link

Turns out this issue was only on Samsung devices. Maybe there was some silent update? I have no idea.

Adding clipData = android.content.ClipData.newRawUri("", imageUri) to Intent fixed the issue.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Self-answer (0.5):
Posted by: George Shalvashvili

79819065

Date: 2025-11-13 15:34:41
Score: 1.5
Natty:
Report link

Use uv. It will automatically install dependencies and also python versions for you. See https://docs.astral.sh/uv/guides/scripts/#using-a-shebang-to-create-an-executable-file .

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

79819063

Date: 2025-11-13 15:31:40
Score: 1
Natty:
Report link

Manually Edit Project File (.csproj)

    <ItemGroup>
      <None Include="Subdirectory\Your3rdParty.dll">
        <CopyToOutputDirectory>Always</CopyToOutputDirectory>
      </None>
    </ItemGroup>
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Harbin Avduramani

79819047

Date: 2025-11-13 15:14:36
Score: 11.5
Natty: 9
Report link

same issue, did you solve it ?

Reasons:
  • RegEx Blacklisted phrase (3): did you solve it
  • RegEx Blacklisted phrase (1.5): solve it ?
  • RegEx Blacklisted phrase (1): same issue
  • Low length (2):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: lucy

79819045

Date: 2025-11-13 15:14:36
Score: 2.5
Natty:
Report link

Google brought me here, leaving this here for others: helm 4.0-r0 makes the exact same mistake.

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

79819040

Date: 2025-11-13 15:09:35
Score: 2
Natty:
Report link

So apparently this api is not to get the same results as the UI. But instead , it returns the "log" or "action" of a user who used this search UI.

So for example, if you search for someone in the UI, the api will return that you did this search.

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

79819023

Date: 2025-11-13 14:56:32
Score: 3
Natty:
Report link

Thank you for being so patient, I tried as you said in the test playground to make it work for you, this is what I came up with to make it work on the test playground.. Unfortunately I couldn't make the Response and Request work on the playground.
I also tried to test check the type but this didn't work at all.. I've tried different methods but none seemed to do what I want to accomplish.
Now I get why Number is different than number, and I thank you very much for the explanation. :-D

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Blacklisted phrase (0.5): thank you
  • RegEx Blacklisted phrase (1): I want
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Alex

79819021

Date: 2025-11-13 14:54:32
Score: 1.5
Natty:
Report link

In Chrome Canary you can turn on Enable individual request throttling in DevTool flag and throttle a specific network request.

The flag is also present on "normal" Chrome, but it actually doesn't turn the feature.

Here is a cool post about it by Matt Zeunert: https://www.debugbear.com/blog/chrome-devtools-throttle-individual-request?ck_subscriber_id=1888924215

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Štefan Bartoš

79819010

Date: 2025-11-13 14:47:30
Score: 1
Natty:
Report link

Just put this :

export const config = {
  matcher: ['/((?!api|_next/static|_next/image|favicon.ico|.*\\..*$).*)']
}
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Serge AHOUANSINOU

79819003

Date: 2025-11-13 14:45:29
Score: 0.5
Natty:
Report link

if you have .env file and it's located in the correct place, than you can try one more option without installing dotenv
just remove prisma.config.ts:

When using prisma.config.ts, environment variables from .env files are not automatically loaded.

link: Prisma documentation

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

79818989

Date: 2025-11-13 14:32:26
Score: 2.5
Natty:
Report link

Please press Insert button, you are in overtype mode

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

79818988

Date: 2025-11-13 14:31:26
Score: 1.5
Natty:
Report link

Cloud Computing

Cloud computing is the on-demand delivery of IT resources and applications over the internet with pay-as-you-go pricing. Rather than owning and maintaining their own physical data centers and servers, individuals and businesses can access a variety of services, such as computing power, storage, and databases, from a cloud provider. This model offers significant benefits, including increased flexibility, scalability, and cost efficiency.
read more

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

79818985

Date: 2025-11-13 14:28:25
Score: 1
Natty:
Report link

The answer, based on comments by @colonel and @vladimir:

def pdf_to_word(pdf_path, docx_path):
    """Uses pdf2docx Converted to turn a pdf into word, because word is way easier to decode into an xml."""
    
    cv = Converter(pdf_path)
    cv.convert(docx_path, multi_processing=True, cpu_count=6)
    cv.close()


if __name__ == '__main__':
    pdf_to_word("example.pdf", "example.docx")

note: I have cpu_count=6 here, but you can check how many cpu's you have by doing

>wmic cpu get numberofcores

in the command line.

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

79818976

Date: 2025-11-13 14:15:22
Score: 1.5
Natty:
Report link

If I see you while you are eating cabbage, then yes, I do expect to see cabbage.

But I think I get it now: There might be multiple suppliers for the same parts, and so supplier 1 might supply screws for project 1, while supplier 2 supplies screws for project 2. In that case, the suppliers <-> projects relation is not the natural composition., while the "connection trap" would suggest that both suppliers supply both projects.

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

79818969

Date: 2025-11-13 14:11:20
Score: 1
Natty:
Report link

With pathlib you can also expand the user:

pathlib.Path("~/some_dir").expanduser()
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
Posted by: mateuszb

79818961

Date: 2025-11-13 14:06:19
Score: 2.5
Natty:
Report link

My opposing opinion is i dont wannt to have Code merged in the Main Branch that still needs to be tested in the Staging System, to ensure only thoroughly teste code localy and in the staging system gets pushed into main and with that is allowed to deploy in a Production environment.

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

79818958

Date: 2025-11-13 14:02:18
Score: 2
Natty:
Report link

Don't tell them to run the python scripts directly. Provide a bash/batch script alongside the python scripts that sets up (if not already present) the venv, activates it, and then runs the python script.

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

79818955

Date: 2025-11-13 13:59:17
Score: 1
Natty:
Report link

-- Source - Python-Mysql connectivity

-- Posted by user14074784, modified by community. See post 'Timeline' for change history

-- Retrieved 2025-11-13, License - CC BY-SA 4.0

import mysql.connector as a

conn = a.connect(host="localhost",user="root",password="darshan",database="PAYSLIP")

#CREATE a database or connect to one

conn = a.connect('Tablename.db')

// Source - Python-Mysql connectivity

// Posted by user14074784, modified by community. See post 'Timeline' for change history

// Retrieved 2025-11-13, License - CC BY-SA 4.0

Traceback(most recent call last):

File "C:\Users\any.py", line 3, in <module>

a=mysql.connector.connect('Payslip.db')

File "C:\Users\Python\Python38-32\lib\site-packages\mysql\connector\_init_.py", line 265, in connect

return MySQLConnection(\*args, \*\*kwargs)

File "C:\Users\AppData\Local\Programs\Python\Python38-32\lib\site-packages\mysql\connector\connection.py", line 64, in _init_

super(MySQLConnection, self).\__init_\_(\*args, \*\*kwargs)

TypeError: _init_() takes 1 positional argument but 2 were given

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): user14074784
  • User mentioned (0): user14074784
  • Low reputation (1):
Posted by: Julian Campos anaya

79818941

Date: 2025-11-13 13:48:14
Score: 2.5
Natty:
Report link

I can Help you with this , We have build the application with the same concept/idea but with the more features. We have successfully build the application for our in house , managing the data and capturing it for the analysis.

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

79818939

Date: 2025-11-13 13:45:13
Score: 1
Natty:
Report link

I managed to get it working by excluding `Microsoft.Bcl.Memory` from the project:

<ItemGroup>
    <PackageReference Include="System.Linq.AsyncEnumerable" Version="10.0.0" />
    <PackageReference Include="Microsoft.Bcl.Memory" Version="10.0.0">
        <ExcludeAssets>all</ExcludeAssets>
    </PackageReference>
</ItemGroup>

Don't know why I need to do this though.

Reasons:
  • Blacklisted phrase (0.5): I need
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Weifen Luo

79818937

Date: 2025-11-13 13:43:12
Score: 5
Natty:
Report link

I have the same issue now after upgrading from Windows 10 to Windows 11. During the development time in Windows 10 there was never an issue with the default exports, now that I have upgraded to Windows 11 am I experiencing this issue with the default exports. I have tried several of the suggestions listed in this thread but nothing seems o make a difference.

Next.js 15.5.6

Reasons:
  • Blacklisted phrase (1): I have the same issue
  • No code block (0.5):
  • Me too answer (2.5): I have the same issue
  • Low reputation (1):
Posted by: Jordan Blue

79818936

Date: 2025-11-13 13:41:11
Score: 12 🚩
Natty: 4
Report link

I am also trying to scrap this webite (https://vahan.parivahan.gov.in/vahan4dashboard/vahan/view/reportview.xhtml) and https://analytics.parivahan.gov.in/analytics/vahanpublicreport?lang=en. i am new to this so can u help me with this.

1. code with which you were able to scrap the first website.

2. how can i scrap 2nd website.

this will be a great help if you could help me with this.

Reasons:
  • Blacklisted phrase (0.5): how can i
  • Blacklisted phrase (1): help me
  • RegEx Blacklisted phrase (3): can u help me
  • RegEx Blacklisted phrase (3): you could help me
  • RegEx Blacklisted phrase (1.5): i am new
  • Probably link only (1):
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Dhruv

79818929

Date: 2025-11-13 13:33:09
Score: 1.5
Natty:
Report link

you can use FROM satijalab/seurat:latest when creating child images or in nextflow. but for now the latest image is build on seurat is v.5.0.0 while the newest is 5.3.1. i don't see in their docker repository an image for that.

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

79818927

Date: 2025-11-13 13:30:08
Score: 2
Natty:
Report link

I'm sorry for being such a noob, it's my first question here hahah, I'm also brand new to Typescript.
Basically I need to make this custom Type for a parameter I get when requesting my API endpoint which points to this searchModel() function through a route router.post('/search', searchModel)

P.S.: why Number isn't the same as number?
Domainl was a typo, Domain is also a custom type I will edit the question so that it's included.

Reasons:
  • Blacklisted phrase (0.5): I need
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Alex

79818914

Date: 2025-11-13 13:21:06
Score: 2
Natty:
Report link

Also experiencing same issues on Angular v18 with latest Chrome - works fine on other browsers.

If triggered then the dialog backdrop / mask appears but no dialog itself - except that it does render to the screen. (It is added to the DOM but not shown).

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

79818910

Date: 2025-11-13 13:19:05
Score: 5
Natty:
Report link

Relational algebra for banking scenario Is there any rule of thumb to construct SQL query from a human-readable description?

Reasons:
  • Blacklisted phrase (1): Is there any
  • Probably link only (1):
  • Low length (2):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • High reputation (-2):
Posted by: philipxy

79818906

Date: 2025-11-13 13:16:03
Score: 6 🚩
Natty:
Report link

I moved them out of the folder structure and into named route files and it seems to work ok, maybe Shopify remix doesn't support folders?

enter image description here

Reasons:
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Charles Marsh

79818901

Date: 2025-11-13 13:11:01
Score: 0.5
Natty:
Report link

09/11/21, 21/11/09 etc. Mrs Ethel Caterham was born in 1909.

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

79818891

Date: 2025-11-13 13:02:59
Score: 4
Natty: 4.5
Report link

https://github.com/comboshreddies/distributed_lock_on_s3

I've used this solution for locking/mutex via s3 bucket file.

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

79818888

Date: 2025-11-13 12:59:58
Score: 2.5
Natty:
Report link

I see you & you eat cabbage. So I eat cabbage?

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • High reputation (-2):
Posted by: philipxy

79818884

Date: 2025-11-13 12:51:56
Score: 3
Natty:
Report link

This was a known bug: https://github.com/langchain-ai/langgraph/issues/6318

For this code to work I had to upgrade to langchain==1.0.5

!pip install langgraph langchain==1.0.5 langchain_openai==1.0.0

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

79818878

Date: 2025-11-13 12:48:55
Score: 3
Natty:
Report link

You file path is not correct which you are opening in read/ write mode with name. You should pass the absolute path of files.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Zain ul Abdin Arshad

79818865

Date: 2025-11-13 12:37:53
Score: 1
Natty:
Report link

This is my personal preference:

# Break line before closing parenthesis
if (this_is_one_thing and 
    that_is_another_thing
):
    do_something()

It somewhat resembles how I would do it in C.

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

79818864

Date: 2025-11-13 12:37:53
Score: 1
Natty:
Report link

Use tidyr::complete() to fill missing cluster–treatment pairs:

library(dplyr)
library(tidyr)

df %>%
  complete(cluster = 1:10,
           treatment = c("TreatmentA", "TreatmentB"),
           fill = list(count = 0))

This ensures every cluster 1–10 has both treatments, filling missing count values with 0.

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

79818851

Date: 2025-11-13 12:28:50
Score: 3
Natty:
Report link

For future people achieving this thread: your corresponding resources must be the same location. If they are not - you need to recreate them (relocation usually does not work).

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

79818850

Date: 2025-11-13 12:28:50
Score: 0.5
Natty:
Report link

Fix the class path in Kernel.php and everything will work.

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

79818845

Date: 2025-11-13 12:21:48
Score: 1.5
Natty:
Report link

the default HTML <select> element is notoriously difficult to style beyond basic tweaks. To create a fully custom-styled sorting dropdown in React, you should build it from scratch using normal HTML elements (like div, ul, li, button) and manage open/close + selection behavior with React state.

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

79818839

Date: 2025-11-13 12:16:47
Score: 0.5
Natty:
Report link

Is this really meant to be an open-ended discussion question (an experimental feature of Stack Overflow)? It reads like a regular question and maybe should have been posted as such.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Is this
  • High reputation (-2):
Posted by: jcalz

79818837

Date: 2025-11-13 12:14:46
Score: 3
Natty:
Report link

If you live in a country where the internet is restricted, try installing packages with a VPN enabled.

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

79818836

Date: 2025-11-13 12:14:46
Score: 0.5
Natty:
Report link

Is this really intended to be an open-ended discussion question (an experimental feature of Stack Overflow) ? It reads like a regular question and maybe should have been posted as such.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Is this
  • High reputation (-2):
Posted by: jcalz

79818819

Date: 2025-11-13 12:00:42
Score: 1
Natty:
Report link

what i think, you're using FCM for full message delivery, which batches and delays at scale and apps like telegram etc, use FCM only as a "wake-up call," not for message delivery.

You can try with few stpes:

  1. Build a persistent WebSocket connection from your app to your own servers

  2. Send minimal FCM payloads with just a "wake up" signal

  3. When FCM arrives, your app wakes up and instantly fetches the actual message through your fast WebSocket connection

This hybrid approach gives you FCM's universal reach for waking devices, but your own optimized channel for actual message delivery, eliminating the 5-10 minute delays.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Starts with a question (0.5): what i
  • Low reputation (0.5):
Posted by: Abhishek Mishra

79818811

Date: 2025-11-13 11:53:40
Score: 3
Natty:
Report link

I thing something similar might help https://dba.stackexchange.com/questions/321376/select-all-records-in-which-the-sum-of-values-are-equal-to-a-specific-value/321377#321377

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

79818806

Date: 2025-11-13 11:50:39
Score: 3.5
Natty:
Report link

My package is supposed to infer from a Python project a Dockerfile usable to run it

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

79818805

Date: 2025-11-13 11:49:38
Score: 9.5 🚩
Natty: 5
Report link

I know this is 3 years old but did you get a solution that worked?

I have the same problem, I need to accept all UK billing counties but we only deliver to the 6 counties in Northern Ireland so want to hide all the English Scottish and Welsh counties.

WC 10.2.2 and a custom theme which I did not develop...

Reasons:
  • Blacklisted phrase (0.5): I need
  • Blacklisted phrase (1): I have the same problem
  • RegEx Blacklisted phrase (3): did you get a solution that
  • Low length (0.5):
  • No code block (0.5):
  • Me too answer (2.5): I have the same problem
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Richard McClung

79818790

Date: 2025-11-13 11:36:34
Score: 7.5 🚩
Natty: 4.5
Report link

Can anybody explain this as I'm also stuck on this, wanted to automate this process by using suitescripts.

Reasons:
  • RegEx Blacklisted phrase (2.5): Can anybody explain
  • RegEx Blacklisted phrase (1.5): I'm also stuck
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Can anybody
  • Low reputation (1):
Posted by: Vikas kumar

79818787

Date: 2025-11-13 11:31:33
Score: 2
Natty:
Report link
function tryNew<A extends unknown[], T>(
  _class: new (...args: A) => T,
  ...args: A
): T | Error { /* .... */ }

https://tsplay.dev/ND168m

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

79818785

Date: 2025-11-13 11:30:32
Score: 1.5
Natty:
Report link

This can be done in the GUI:

  1. Open the settings.
  2. Go to the Startup tab.
  3. Scroll down and expand Launch size.
  4. Adjust Columns and Rows to the size you want.

enter image description here

Reasons:
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • High reputation (-1):
Posted by: Donald Duck is with Ukraine

79818774

Date: 2025-11-13 11:18:29
Score: 2.5
Natty:
Report link

You can generate list of all possible combinations from using itertools.combinations()

Then check if sum of all those combinations will match the constat value that you have.

I don't know how efficient you want it to be but it surely is a one way to do it.

Example generating combinations: https://stackoverflow.com/a/56397669/25131836

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Suleman Elahi

79818762

Date: 2025-11-13 11:04:26
Score: 0.5
Natty:
Report link

I encountered the same issue in Postgresql 18 on Windows 11. Solutions from other answers did not help.

In my case the issue got fixed by installing the latest C++ Redistributable.

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

79818760

Date: 2025-11-13 10:57:25
Score: 0.5
Natty:
Report link

If you are restricted to ExtendScript (eg as Adobe InDesign scripter), then you could use this function:

function removeItemOnce(arr, value) {
    for ( i in arr ) {
        if ( arr[i] == value ) {
            arr = arr.splice(i, 1);
            break;
    }
    }
    return arr;
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Rudi

79818751

Date: 2025-11-13 10:51:23
Score: 2
Natty:
Report link

Yes. You can run a Unity VR project without a headset using OpenXR, the XR Interaction Toolkit, and the Meta XR Simulator. The Meta XR Simulator provides virtual input and simulated head and hand tracking, allowing you to test interactions directly in the Unity Editor. To do this, enable OpenXR with Meta XR as a feature group, add the Meta XR Simulator feature, and run the scene in Play Mode, no headset required.

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

79818750

Date: 2025-11-13 10:50:23
Score: 1
Natty:
Report link

Should help https://www.baeldung.com/spring-rest-openapi-documentation

<dependency>
    <groupId>org.springdoc</groupId>
    <artifactId>springdoc-openapi-starter-webflux-ui</artifactId>
    <version>2.8.5</version>
</dependency>
<dependency>
    <groupId>org.springdoc</groupId>
    <artifactId>springdoc-openapi-starter-common</artifactId
    <version>2.8.5</version>
</dependency>
Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Max

79818735

Date: 2025-11-13 10:32:18
Score: 4
Natty:
Report link

@sean good point - a misunderstanding of how CSS transitions work on my part. I was under the impression that I had to declare a property to transition in each rule - i.e. simply saying "transition: background-color 0.5s" without stating an actual background colour wouldn't work. Which is what led to me overthinking!

Reasons:
  • No code block (0.5):
  • User mentioned (1): @sean
  • Self-answer (0.5):
  • Single line (0.5):
  • Looks like a comment (1):
  • Low reputation (0.5):
Posted by: chrisjfinlay

79818724

Date: 2025-11-13 10:19:16
Score: 1
Natty:
Report link

The short answer is: Clang and GCC are correct. You must use typename A::B

The compilers that accept A::B() or A::B{} without typename are non-compliant in this case.

Why typename is Required Here?

The rule is that you must use the typename keyword to prefix any dependent qualified name that refers to a type.

The entire issue boils down to one question: Is A::B a dependent name? The answer is yes.

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

79818711

Date: 2025-11-13 10:12:14
Score: 1
Natty:
Report link

Create or edit /etc/docker/daemon.json

{
  "mtu": 1450
}
sudo systemctl restart docker
docker network prune -f
docker compose down
docker compose up -d

it fixing the internet connection issue

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

79818710

Date: 2025-11-13 10:12:14
Score: 0.5
Natty:
Report link

This solution worked for me:

 ALTER TABLE [TABLE_NAME] ALTER COLUMN [COLUMN_NAME] SET NOT NULL,
                          ALTER COLUMN [COLUMN_NAME] SET NOT NULL; 
Reasons:
  • Whitelisted phrase (-1): worked for me
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Savion Kühnel

79818704

Date: 2025-11-13 10:06:12
Score: 1
Natty:
Report link

Yes, this is a bug that's fixed in VS 2022 17.12.

Bug report: https://github.com/microsoft/STL/issues/4728
Fix: https://github.com/microsoft/STL/pull/4729

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

79818702

Date: 2025-11-13 10:05:12
Score: 1
Natty:
Report link

Press CTRL+P, search for the option explorer.sortOrderLexicographicOptions, and change it from unicode to default:

enter image description here

Now file in File Explorer are sorted in natural order:

enter image description here

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