AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • Início
  • system&network
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • Início
  • system&network
    • Recentes
    • Highest score
    • tags
  • Ubuntu
    • Recentes
    • Highest score
    • tags
  • Unix
    • Recentes
    • tags
  • DBA
    • Recentes
    • tags
  • Computer
    • Recentes
    • tags
  • Coding
    • Recentes
    • tags
Início / coding / 问题

All perguntas(coding)

Martin Hope
Quercus Robur
Asked: 2025-04-24 22:50:47 +0800 CST

Alternativa ao loop em um eixo numpy

  • 7

Tenho dois arrays numpy ae boutros que a.shape[:-1]e b.shapesão transmissíveis. Com apenas essa restrição, quero calcular um array cde acordo com o seguinte:

c = numpy.empty(numpy.broadcast_shapes(a.shape[:-1],b.shape),a.dtype)
for i in range(a.shape[-1]):
    c[...,i] = a[...,i] * b

O código acima certamente funciona, mas gostaria de saber se existe uma maneira mais elegante (e idiomática) de fazê-lo.

python
  • 1 respostas
  • 53 Views
Martin Hope
BobtheMagicMoose
Asked: 2025-04-24 22:44:51 +0800 CST

Layout contínuo de alvenaria/galeria em toda a largura, mantendo a proporção da imagem por meio do ajuste da altura da fileira

  • 5

Quero ter uma galeria de imagens com miniaturas onde cada imagem mantenha sua proporção e cada linha da galeria ocupe largura total. A única maneira de conseguir isso parece ser:

  • selecione o número de imagens que caberão na linha em uma altura normal
  • aumentar a altura das imagens na linha até que ela tenha largura total.

É possível criar esse layout apenas via CSS? Tenho quase certeza de que a resposta é "não", mas só queria verificar, pois imagino que seja um problema muito comum (tanto o OneDrive quanto o Google Fotos parecem fazer isso por meio de cálculos manuais). As abordagens de CSS que me vêm à mente incluem usar uma caixa flexível (ou grade) e ter espaço extra ou aumentar/recortar a imagem para preencher o espaço.

.root{
  display:flex;
  flex-direction: row;
  flex-wrap: wrap;
  width: 500px;
  border:2px solid black;
  & div{
    border: 1px solid blue;
    height: 100px;
  }
  
  & .portrait{
    aspect-ratio: 3 / 2;
    }
  & .landscape{
    aspect-ratio: 2 / 3;
  }
}

.desired{
  & div:nth-of-type(1), div:nth-of-type(2), div:nth-of-type(3){
    height: 134px;
  }
  & div:nth-of-type(4), div:nth-of-type(5), div:nth-of-type(6){
    height: 109px;
  }
}
  
<div>
Current:
  <div class="root">
    <div class="portrait">s</div>
    <div class="landscape">w</div>
    <div class="portrait">s</div>
    <div class="portrait">s</div>
    <div class="portrait">s</div>
    <div class="portrait">s</div>
    <div class="landscape">w</div>
  </div>
Desired:
  <div class="root desired">
    <div class="portrait">s</div>
    <div class="landscape">w</div>
    <div class="portrait">s</div>
    <div class="portrait">s</div>
    <div class="portrait">s</div>
    <div class="portrait">s</div>
    <div class="landscape">w</div>
  </div>

css
  • 1 respostas
  • 28 Views
Martin Hope
gernophil
Asked: 2025-04-24 22:31:24 +0800 CST

Como tornar um evento reativo silencioso para uma função específica?

  • 7

Eu tenho o aplicativo na parte inferior. Agora, tenho este campo predefinido onde posso selecionar entre 3 opções (+ a opção changed). O que eu quero é poder definir o input_option com o campo predefinido. Mas também quero poder alterá-lo manualmente. Se eu alterar o input_option manualmente, o campo predefinido deve mudar para changed. O problema é que, se eu definir a opção com o campo predefinido, isso aciona automaticamente a segunda função e define o input_preset de volta para changed. Mas isso só deve acontecer se eu alterá-lo manualmente, não se for alterado pela primeira função reativa. Isso é possível de alguma forma? Tentei um pouco com reactive.isolate(), mas isso não parece ter nenhum efeito.

from shiny import App, ui, reactive


app_ui = ui.page_fillable(
    ui.layout_sidebar(
        ui.sidebar(
            ui.input_select("input_preset", "input_preset", choices=["A", "B", "C", "changed"]),
            ui.input_text("input_option", "input_option", value=''),
        )
    )
)


def server(input, output, session):


    @reactive.effect
    @reactive.event(input.input_preset)
    def _():
        if input.input_preset() != 'changed':
            # with reactive.isolate():
                ui.update_text("input_option", value=str(input.input_preset()))


    @reactive.effect
    @reactive.event(input.input_option)
    def _():
        ui.update_select("input_preset", selected='changed')


app = App(app_ui, server)

python
  • 1 respostas
  • 23 Views
Martin Hope
Chris
Asked: 2025-04-24 22:29:30 +0800 CST

UIPasteControl não dispara

  • 6

Tenho um iOSaplicativo no qual estou tentando colar algo copiado anteriormente no arquivo .ms do usuário UIPasteboard. Descobri UIPasteControlque há uma opção para o usuário tocar para colar silenciosamente sem que o prompt "Permitir Colar" apareça.

Por algum motivo, apesar de ter o que aparentemente são as configurações corretas para o UIPasteControl, ao testar um toque, nada é chamado. Eu esperava override func paste(itemProviders: [NSItemProvider])que disparasse, mas não dispara.

Qualquer ajuda seria apreciada, pois não parece haver muita informação em lugar nenhum sobre isso UIPasteControl.

import UIKit
import UniformTypeIdentifiers

class ViewController: UIViewController {
private let pasteControl = UIPasteControl()

override func viewDidLoad() {
    super.viewDidLoad()

    view.backgroundColor = .systemBackground

    pasteControl.target = self
    pasteConfiguration = UIPasteConfiguration(acceptableTypeIdentifiers: [
         UTType.text.identifier,
         UTType.url.identifier,
         UTType.plainText.identifier
     ])

    //Tried setting pasteControl's pastConfiguration, and got the same result.          
      //pasteControl.pasteConfiguration = UIPasteConfiguration(
      //acceptableTypeIdentifiers: [
        //UTType.text.identifier,
        //UTType.url.identifier,
        //UTType.plainText.identifier
      //]
    //)

    view.addSubview(pasteControl)
    pasteControl.translatesAutoresizingMaskIntoConstraints = false
    NSLayoutConstraint.activate([
        pasteControl.centerXAnchor.constraint(equalTo: view.centerXAnchor),
        pasteControl.centerYAnchor.constraint(equalTo: view.centerYAnchor),
    ])
}
}

extension ViewController {
override func paste(itemProviders: [NSItemProvider]) {
        for provider in itemProviders {
            if provider.hasItemConformingToTypeIdentifier(UTType.url.identifier) {
                provider.loadObject(ofClass: URL.self) { [weak self] reading, _ in
                    guard let url = reading as? URL else { return }
                    print(url)
                }
            }
            else if provider.hasItemConformingToTypeIdentifier(UTType.plainText.identifier) {
                provider.loadObject(ofClass: NSString.self) { [weak self] reading, _ in
                    guard let nsstr = reading as? NSString else { return }
                    let str = nsstr as String
                    if let url = URL(string: str) {
                        print(url)
                    }
                }
            }
        }
    }
}
  • 1 respostas
  • 44 Views
Martin Hope
Muhammad Najid
Asked: 2025-04-24 22:14:25 +0800 CST

passando os dados do layout.ts das crianças para o layout.svelte dos pais

  • 4

Então, tenho trabalhado na implementação do recurso de trilhas de navegação no meu webapp sveltekit.

  1. A ideia é que o breadcrumb seja renderizado no topo do layout.svelte.
  2. E então os descendentes subsequentes, de alguma forma, passarão seus dados de navegação para o pai.
  3. Isso é útil quando tenho uma rota de descanso em algum lugar.
  4. Consegui fazer funcionar. Mas acho que pode haver uma maneira melhor de lidar com isso.
  5. exemplo prático -> [https://stackblitz.com/edit/sveltejs-kit-template-default-2o46jwja?file=src%2Froutes%2Ffolders%2F%5B...rest%5D%2F%2Bpage.svelte][1]
  6. Como você pode ver, estou fazendo isso usando vanilla js, então o armazenamento não é reativo, já que o inicializei em layout.ts. Isso significa que não será útil para armazenar dados reativos posteriormente.

Seria bom se alguém pudesse compartilhar suas experiências caso tenha encontrado algo parecido com isso.

svelte
  • 1 respostas
  • 33 Views
Martin Hope
JFFIGK
Asked: 2025-04-24 22:05:40 +0800 CST

Por que definir um valor em uma chave de registro aberta (em vez de criada) gera "Acesso negado"?

  • 6

Abra uma chave de registro para gravar usando create:

pub fn main() -> Result<(), windows::core::Error> {
    let auto_start = windows_registry::CURRENT_USER.create("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run")?;
    auto_start.set_value("Test", &windows_registry::Value::from("content"))?;
    Ok(())
}

Isso funciona como esperado (create apenas abre a chave como ela já existe, e o valor é adicionado).

Entretanto, como a chave já existe, eu gostaria de simplesmente abri-la, por exemplo, como o seguinte:

fn main() -> Result<(), windows::core::Error> {
    let auto_start = windows_registry::CURRENT_USER.open("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run")?;
    auto_start.set_value("Test", &windows_registry::Value::from("content"))?;
    Ok(())
}

No entanto, ele falha com um erro de acesso negado, mesmo se eu executar o programa em um terminal iniciado com "Executar como administrador":

Erro: Erro { código: HRESULT(0x80070005), mensagem: "Acesso negado." }

Por que isso acontece?

Não deveria openprecisar no máximo das mesmas permissões que create?

E por que isso nem funciona em um terminal elevado?

Curiosamente, basta abrir sem definir um valor...

rust
  • 1 respostas
  • 63 Views
Martin Hope
Kris
Asked: 2025-04-24 21:32:12 +0800 CST

É possível construir uma matriz no Excel usando valores de células existentes

  • 7

É possível construir uma matriz no Excel da seguinte maneira:={1,2;3,4}

Usando esse método, quero calcular o inverso de uma matriz 5 x 5 de uma série de elementos em uma linha, em vez de distribuídos como em uma matriz 5 x 5 verdadeira em 5 linhas e 5 colunas.

É possível referenciar as células em sua localização atual para construir uma matriz 5 x 5 dentro da função MINVERSE, como =MINVERSE(A1:A5;A6:A10...A21:25)?

excel
  • 2 respostas
  • 67 Views
Martin Hope
Bogaso
Asked: 2025-04-24 21:24:39 +0800 CST

Linhas de marcação irregulares quando adiciono marcação extra

  • 6

Abaixo está meuggplot

library(ggplot2)

dat = structure(list(x = c(0.038362636053748, 0.0350340127781965, 0.0170342545048334, 
0.0456167190917768, 0.0246753886074293, 0.015978419353487, 0.02345346731483, 
0.035775313929189, 0.0362819382816087, 0.0460074759379495, 0.0355744209617842, 
0.0278667781117838, 0.0421519015298691, 0.0305214132531546, 0.0204445846693125, 
0.0358961151842959, 0.0457219827605877, 0.0376390527805779, 0.0338345712644514, 
0.0251005005848128, 0.0472049922449514, 0.0303733868291602, 0.0189651491877157, 
0.0413547690375708, 0.0273687251936644, 0.0229116637981497, 0.01601815621485, 
0.0462230957380962, 0.0341604682744946, 0.0283300181594677, 0.0451373701705597, 
0.0258701920940075, 0.0484355257067364, 0.0219022567092907, 0.0367744490783662, 
0.01956381403259, 0.0354586373071652, 0.018800362132024, 0.0348129489354324, 
0.0423994669434615, 0.0377335927507374, 0.0238844661298208, 0.035316273967037, 
0.0324556400394067, 0.0411237295146566, 0.0484172792441677, 0.0420868713012897, 
0.0158112288371194, 0.0189540091762319, 0.0224225894582924, 0.0443572197458707, 
0.033456686232239, 0.0189867398678325, 0.0209547734842636, 0.0416194785234984, 
0.0280921992170624, 0.0410054941219278, 0.0280553078558296, 0.0264267705800012, 
0.0297777217288967, 0.0254321554536, 0.0274427520309109, 0.0431906649225857, 
0.0332097801065538, 0.0338664089515805, 0.0299551230377983, 0.0431238019827288, 
0.0456232655630447, 0.033413805536693, 0.0321371672407258, 0.0303111031767912, 
0.0489989949064329, 0.0481856980791781, 0.0168232739227824, 0.0351056582189631, 
0.0468146548746154, 0.0338977668609004, 0.038348187035881, 0.0214134330151137, 
0.0412089407735039, 0.0487178196012974, 0.0486091111518908, 0.0240328466054052, 
0.0393267812766135, 0.0275843715528026, 0.0270194761327002, 0.042719343539793, 
0.0311470661952626, 0.0385598440270405, 0.0298005522810854, 0.048948519427795, 
0.0287848878221121, 0.0329418209090363, 0.0232495477492921, 0.0420155188802164, 
0.0266449011012446, 0.0486524973902851, 0.0270629280386493, 0.0351066672045272, 
0.0234074234869331, 0.0286317409807816), y = c(0.674042553191489, 
0.668936170212766, 0.662127659574468, 0.672340425531915, 0.663829787234043, 
0.662127659574468, 0.660425531914894, 0.67063829787234, 0.67063829787234, 
0.67063829787234, 0.668936170212766, 0.667234042553192, 0.672340425531915, 
0.665531914893617, 0.660425531914894, 0.67063829787234, 0.672340425531915, 
0.672340425531915, 0.667234042553192, 0.663829787234043, 0.67063829787234, 
0.665531914893617, 0.663829787234043, 0.672340425531915, 0.667234042553192, 
0.662127659574468, 0.662127659574468, 0.67063829787234, 0.667234042553192, 
0.668936170212766, 0.672340425531915, 0.665531914893617, 0.67063829787234, 
0.662127659574468, 0.67063829787234, 0.662127659574468, 0.668936170212766, 
0.663829787234043, 0.668936170212766, 0.672340425531915, 0.672340425531915, 
0.660425531914894, 0.668936170212766, 0.665531914893617, 0.672340425531915, 
0.67063829787234, 0.672340425531915, 0.662127659574468, 0.663829787234043, 
0.662127659574468, 0.672340425531915, 0.667234042553192, 0.663829787234043, 
0.660425531914894, 0.672340425531915, 0.668936170212766, 0.672340425531915, 
0.668936170212766, 0.665531914893617, 0.667234042553192, 0.663829787234043, 
0.667234042553192, 0.672340425531915, 0.667234042553192, 0.667234042553192, 
0.667234042553192, 0.672340425531915, 0.672340425531915, 0.667234042553192, 
0.665531914893617, 0.665531914893617, 0.672340425531915, 0.67063829787234, 
0.662127659574468, 0.668936170212766, 0.672340425531915, 0.667234042553192, 
0.674042553191489, 0.662127659574468, 0.672340425531915, 0.67063829787234, 
0.67063829787234, 0.660425531914894, 0.674042553191489, 0.667234042553192, 
0.667234042553192, 0.672340425531915, 0.665531914893617, 0.674042553191489, 
0.667234042553192, 0.672340425531915, 0.668936170212766, 0.665531914893617, 
0.662127659574468, 0.672340425531915, 0.665531914893617, 0.67063829787234, 
0.667234042553192, 0.668936170212766, 0.660425531914894, 0.668936170212766
)), class = "data.frame", row.names = c(NA, -101L))

ggplot(dat, aes(x, y)) +
  geom_point() +
  scale_x_continuous(limit = c(1.5/100, 7/100), breaks = c(0.037, seq(1.5/100, 7/100, by = .5/100)))

Como pode ser visto, ele x-axis tick-linesse torna bem irregular quando eu marco o item extra em 0,037.

Existe alguma maneira de colocar tick-linesem intervalo regular ainda tendo uma ticklinha extra em 0,037?

  • 2 respostas
  • 60 Views
Martin Hope
JoSSte
Asked: 2025-04-24 21:10:14 +0800 CST

Atualizar dependência maven com sed no Jenkinsfile

  • 5

Tenho um Jenkinsfile que analisa um servidor local de artefatos em busca de novas versões do arquivo pai e das dependências. Quando confirmo que há uma nova versão, quero substituir a versão antiga por uma nova.

então dado um pom.xml contendo esta dependência:

<dependency>
  <groupId>abcde</groupId>
  <artifactId>xyz</artifactId>
  <version>1.2.4</version>
</dependency>

... e suponha que haja uma versão mais recente 1.3.5 do abcde.xyz...

Gostaria de atualizar isso com o seguinte comando sed:

sed -i '/<dependency>/,/<\/dependency>/{
    /<groupId>abcde<\/groupId>/{
        /<artifactId>xyz<\/artifactId>/{
            s/<version>1.2.4<\/version>/<version>1.3.5<\/version>/
        }
    }
}' pom.xml

Se eu criar um pom.xml contendo o xml acima ou somente o xml acima e executar essa instrução, o arquivo será modificado, mas nada mudará. A remoção do -isinalizador basicamente despeja o arquivo 1:1 na saída padrão - o que estou perdendo?

saída esperada:

<dependency>
  <groupId>abcde</groupId>
  <artifactId>xyz</artifactId>
  <version>1.3.5</version>
</dependency>

(No jenkinsfile ele é parametrizado e escapado como abaixo, mas como a instrução básica não está funcionando, concentre-se nisso.)

sh """
sed -i '/<dependency>/,/<\\/dependency>/{
    /<groupId>${groupId}<\\/groupId>/{
        /<artifactId>${artifactId}<\\/artifactId>/{
            s/<version>${version}<\\/version>/<version>${targetVersion}<\\/version>/
        }
    }
}' pom.xml
"""
xml
  • 2 respostas
  • 49 Views
Martin Hope
Doug Wilson
Asked: 2025-04-24 20:51:21 +0800 CST

Como os elementos ShadowRoot em uma tabela de dados HtmlElement personalizada podem ser acessados ​​após a conclusão de funções assíncronas?

  • 5

Criei um EntityTable (tabela de entidades) HtmlElement personalizado (em sua maioria) que busca e exibe com sucesso dados JSON de um microsserviço RESTful personalizado em um HTML <table>.

insira a descrição da imagem aqui

De outro módulo de código ( app.js), desejo selecionar (e destacar) a primeira linha da tabela ( <tr>), incluindo o valor do ID da entidade inteira que ela contém em sua primeira célula ( <td>), e passar a linha (como a linha selecionada padrão) para um ouvinte que usará o ID para preencher uma segunda EntityTable relacionada.

Mas quando defino um ponto de interrupção, app.jsapenas os elementos <link>da tabela <table>parecem existir no elemento ShadowRoot da EntityTable, que foi anexado no openmodo em seu constructor().

Guia Fontes das Ferramentas do Desenvolvedor

Guia Elementos das Ferramentas do Desenvolvedor

índice.html

    <section id="definitions">
      <entity-table id="entitytypedefinition" baseUrl="http://localhost:8080/entityTypes/" entityTypeName="EntityTypeDefinition" whereClause="%22Id%22%20%3E%200" sortClause="%22Ordinal%22%20ASC" pageNumber="1" pageSize="20" includeColumns="['Id', 'LocalizedName', 'LocalizedDescription', 'LocalizedAbbreviation']" zeroWidthColumns="['Id']" eventListener="entityTableCreated"></entity-table>
    </section>

EntityTable.js

//NOTE: Copyright © 2003-2025 Deceptively Simple Technologies Inc. Some rights reserved. Please see the aafdata/LICENSE.txt file for details.

class EntityTable extends HTMLElement {
  constructor() {
    super();
    const shadow = this.attachShadow({ mode: 'open' });

    console.log(`EntityTable constructor ends.`);
  }

  //NOTE: Called each time this custom element is added to the document, and the specification recommends that custom element setup be performed in this callback rather than in the constructor
  connectedCallback() {
    const link = document.createElement('link');
    link.setAttribute('rel', 'stylesheet');
    link.setAttribute('href', 'css/style.css');
    this.shadowRoot.appendChild(link);

    //TODO: Get live authentication token
    document.cookie = "Authentication=XXX";

    const table = document.createElement('table');

    console.log(`EntityTable connectedCallback() Explicit parent id: ${this.getAttribute('id')}`);
    table.setAttribute('id', this.getAttribute('id') + '-23456' || 'entitytypedefinition-34567')   //TODO: Generate and append a unique id
    table.setAttribute('class', 'entity-table');

    console.log(`EntityTable connectedCallback() Not fetching data yet!`);

    //TODO: Should this be put back into the constructor???
    //TODO: And should the event listener be added to the document or to the table???
    this.addEventListener(this.getAttribute('eventListener') || 'DOMContentLoaded', async () => {
      console.log('EntityTable connectedCallback() ' + this.getAttribute('eventListener') + ` event listener added.`);
      try {
        if ((this.getAttribute('eventListener') == 'entityTableCreated') || (this.getAttribute('eventListener') == 'entityTableRowClicked')) {
          const data = await fetchData(this.getAttribute('baseUrl') || 'http://localhost:8080/entityTypes/', this.getAttribute('entityTypeName') || 'EntityTypeDefinition', this.getAttribute('whereClause') || '%22Id%22%20%3E%20-2', this.getAttribute('sortClause') || '%22Ordinal%22%20ASC', this.getAttribute('pageSize') || 20, this.getAttribute('pageNumber') || 1);
          await displayData(data, table, this.getAttribute('includeColumns') || ['Id', 'EntitySubtypeId', 'TextKey'], this.getAttribute('zeroWidthColumns') || []);
        }
      }
      catch (error) {
        console.error('Error fetching data:', error);
      }
    });

    this.shadowRoot.appendChild(table);
    console.log(`EntityTable connectedCallback() Data fetched and displayed!`);
  }
}

customElements.define('entity-table', EntityTable)

async function fetchData( ...

async function displayData( ...

app.js

//NOTE: Copyright © 2003-2025 Deceptively Simple Technologies Inc. Some rights reserved. Please see the aafdata/LICENSE.txt file for details.

console.log(`app.js executing! No DOMContentLoaded listener added yet.`);

//NOTE: Constructors for both EntityTables defined in index.html are called here

//NOTE: "Wire up" the two EntityTables so that when a row is clicked in the first EntityTable, the data is sent to the second EntityTable
document.addEventListener('DOMContentLoaded', () => {
  const entityTableDefinitions = document.getElementById('entitytypedefinition');
  const entityTableAttributes = document.getElementById('entitytypeattribute');

  console.log(`app.js still executing! DOMContentLoaded listener now added to page.`);

  //NOTE: Populate the definitions table with data by adding custom listener and dispatching custom event
  const definitionsEvent = new CustomEvent('entityTableCreated', {
    detail: { entityTableDefinitions }
  });

  console.log(`app.js still executing! Dispatching entityTableCreated event ...`);
  entityTableDefinitions.dispatchEvent(definitionsEvent);

  const selectedRow = entityTableDefinitions.shadowRoot.innerHTML; //NOTE: Get the first row in the table
  //.querySelectorAll('tr').length; //NOTE: Get the first row in the table
  //.querySelectorAll('table')[0]
  //.querySelectorAll('tbody');
  //.querySelectorAll('tr')[0]; //NOTE: Get the first row in the table

  //NOTE: Populate the attributes table with data by adding custom listener and dispatching custom event
  const attributesEvent = new CustomEvent('entityTableRowClicked', {
    detail: { selectedRow }
  });

  console.log(`app.js still executing! Dispatching entityTableRowClicked event: ${selectedRow} ...`);
  entityTableAttributes.dispatchEvent(attributesEvent);

  //TODO: Add click event listener to each row in the first table??? (unless passing the EntityTable reference is sufficient)

});

Tentei mover a this.shadowRoot.appendChild(table)instrução para cima, logo abaixo do método await displayData()da EntityTable this.addEventListener(), e torná-la await, mas isso resultou em menos elementos (apenas o <link>) disponíveis.

Suspeito que o app.jscódigo continua sendo executado enquanto as fetchData()promessas `displayData() e `displayData() são aguardadas, mas não sei como evitar isso.

Não sou um cara de front-end. Qualquer ajuda seria muito apreciada.

javascript
  • 1 respostas
  • 48 Views
Prev
Próximo

Sidebar

Stats

  • Perguntas 205573
  • respostas 270741
  • best respostas 135370
  • utilizador 68524
  • Highest score
  • respostas
  • Marko Smith

    Reformatar números, inserindo separadores em posições fixas

    • 6 respostas
  • Marko Smith

    Por que os conceitos do C++20 causam erros de restrição cíclica, enquanto o SFINAE antigo não?

    • 2 respostas
  • Marko Smith

    Problema com extensão desinstalada automaticamente do VScode (tema Material)

    • 2 respostas
  • Marko Smith

    Vue 3: Erro na criação "Identificador esperado, mas encontrado 'import'" [duplicado]

    • 1 respostas
  • Marko Smith

    Qual é o propósito de `enum class` com um tipo subjacente especificado, mas sem enumeradores?

    • 1 respostas
  • Marko Smith

    Como faço para corrigir um erro MODULE_NOT_FOUND para um módulo que não importei manualmente?

    • 6 respostas
  • Marko Smith

    `(expression, lvalue) = rvalue` é uma atribuição válida em C ou C++? Por que alguns compiladores aceitam/rejeitam isso?

    • 3 respostas
  • Marko Smith

    Um programa vazio que não faz nada em C++ precisa de um heap de 204 KB, mas não em C

    • 1 respostas
  • Marko Smith

    PowerBI atualmente quebrado com BigQuery: problema de driver Simba com atualização do Windows

    • 2 respostas
  • Marko Smith

    AdMob: MobileAds.initialize() - "java.lang.Integer não pode ser convertido em java.lang.String" para alguns dispositivos

    • 1 respostas
  • Martin Hope
    Fantastic Mr Fox Somente o tipo copiável não é aceito na implementação std::vector do MSVC 2025-04-23 06:40:49 +0800 CST
  • Martin Hope
    Howard Hinnant Encontre o próximo dia da semana usando o cronógrafo 2025-04-21 08:30:25 +0800 CST
  • Martin Hope
    Fedor O inicializador de membro do construtor pode incluir a inicialização de outro membro? 2025-04-15 01:01:44 +0800 CST
  • Martin Hope
    Petr Filipský Por que os conceitos do C++20 causam erros de restrição cíclica, enquanto o SFINAE antigo não? 2025-03-23 21:39:40 +0800 CST
  • Martin Hope
    Catskul O C++20 mudou para permitir a conversão de `type(&)[N]` de matriz de limites conhecidos para `type(&)[]` de matriz de limites desconhecidos? 2025-03-04 06:57:53 +0800 CST
  • Martin Hope
    Stefan Pochmann Como/por que {2,3,10} e {x,3,10} com x=2 são ordenados de forma diferente? 2025-01-13 23:24:07 +0800 CST
  • Martin Hope
    Chad Feller O ponto e vírgula agora é opcional em condicionais bash com [[ .. ]] na versão 5.2? 2024-10-21 05:50:33 +0800 CST
  • Martin Hope
    Wrench Por que um traço duplo (--) faz com que esta cláusula MariaDB seja avaliada como verdadeira? 2024-05-05 13:37:20 +0800 CST
  • Martin Hope
    Waket Zheng Por que `dict(id=1, **{'id': 2})` às vezes gera `KeyError: 'id'` em vez de um TypeError? 2024-05-04 14:19:19 +0800 CST
  • Martin Hope
    user924 AdMob: MobileAds.initialize() - "java.lang.Integer não pode ser convertido em java.lang.String" para alguns dispositivos 2024-03-20 03:12:31 +0800 CST

Hot tag

python javascript c++ c# java typescript sql reactjs html

Explore

  • Início
  • Perguntas
    • Recentes
    • Highest score
  • tag
  • help

Footer

AskOverflow.Dev

About Us

  • About Us
  • Contact Us

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve