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
Thomas
Asked: 2025-04-10 21:19:18 +0800 CST

Como convencer o compilador de que meu `FnMut` assíncrono não é invocado em paralelo?

  • 8

Em uma caixa, tenho um wrapper de uso geral para arquivos temporários:

pub struct TempFile {
    // ...
}

Em outra caixa, tenho um wrapper de repetição assíncrona de uso geral:

pub async fn retry<F, R>(mut func: F) -> Result<(), String>
where
    F: FnMut() -> R,
    R: Future<Output = Result<(), String>>
{
    for _ in 0..5 {
        if func().await.is_ok() {
            return Ok(());
        }
    }
    Err("failed".to_owned())
}

Na terceira caixa, tenho uma função de download de uso geral que baixa para um arquivo temporário:

async fn download(output: &mut TempFile) -> Result<(), String> {
    // ...
}

Agora quero adicionar uma função de nova tentativa de download como esta:

async fn download_with_retry(output: &mut TempFile) -> Result<(), String> {
    retry(|| { download(output) }).await
}

Entretanto, isso não compila:

error: captured variable cannot escape `FnMut` closure body
  --> src/lib.rs:16:20
   |
15 |     async fn download_with_retry(output: &mut TempFile) -> Result<(), String> {
   |                                  ------ variable defined here
16 |         retry(|| { download(output) }).await
   |                -   ^^^^^^^^^------^
   |                |   |        |
   |                |   |        variable captured here
   |                |   returns an `async` block that contains a reference to a captured variable, which then escapes the closure body
   |                inferred to be a `FnMut` closure
   |
   = note: `FnMut` closures only have access to their captured variables while they are executing...
   = note: ...therefore, they cannot allow references to captured variables to escape

Entendo por que isso está acontecendo: embora a retryfunção sempre espere functerminar antes de invocá-la novamente, o compilador não consegue ver isso e tem que assumir que múltiplas invocações paralelas são possíveis, levando a múltiplos empréstimos mutáveis ​​simultâneos de output.

Sei que posso contornar isso passando Rc<RefCell<TempFile>>para download_with_retry, mas isso significa que ele vaza para a API pública dessa função sem nenhum bom motivo.

Existe outra solução? Idealmente, modificando apenas a implementação de retrye/ou download_with_retry, mantendo as assinaturas?

Link do playground

rust
  • 1 respostas
  • 55 Views
Martin Hope
Ghost
Asked: 2025-04-10 21:19:01 +0800 CST

Classificar um dataframe polar com base em uma lista externa

  • 7

Manhã,

Não tenho certeza se isso pode ser alcançado.

Digamos que eu tenha um dataframe polar com colunas a, b (qualquer que seja).

df = pl.DataFrame({"a":[1,2,3,4,5],"b":['x','y','z','p','f']})

E uma lista... l = [1,3,5,2,4]; é possível classificar o dataframe (usando a coluna "a") usando a lista l como ordem de classificação?

Desde já, obrigado!

python
  • 2 respostas
  • 55 Views
Martin Hope
Javier
Asked: 2025-04-10 21:18:19 +0800 CST

APS/Forge signed3 minutos de upload Limite de expiração de 60 minutos, URL expira quando o item de trabalho termina

  • 5

Estou executando um aplicativo no Autodesk Platform Services (antigo Forge). Para alguns arquivos, demora mais de 60 minutos para obter os resultados, então a URL de upload expirou e o upload foi realizado, resultando em um resultado de falha no upload. Alterei o minutesExpiration em S3UploadURL para 60, mas preciso de mais tempo. Preciso alimentar a URL de saída para o workItem, então acho que não conseguirei obtê-la mais tarde para evitar que ele expire.

Veja abaixo o trecho de código onde obtenho a URL temporária com a opção expirationMinutes definida como 60, crio o workItem e insiro a outputURL. Aguardo alguém que possa me ajudar a estender esse limite de 60 minutos ou que conheça uma solução alternativa.

//POST Get temporary Upload URL
var objectsApiInstance3 = new ObjectsApi();
Dictionary<string, object> opts = new Dictionary<string, object>();
opts.Add("minutesExpiration", 60);
var uploadCsvResponse = objectsApiInstance3.getS3UploadURLAsync(urnOutputBucket, urnOutputObjectKey, opts);
dynamic uploadCsv = JsonConvert.DeserializeObject<Dictionary<string, object>>(uploadCsvResponse.Result.ToString());
string uploadUrl = "";
string outputUploadKey = "";
foreach (var e in uploadCsv)
{
    if (e.Key == "urls")
    {
        uploadUrl = e.Value[0];
    }
    if (e.Key == "uploadKey")
    {
        outputUploadKey = e.Value;
    }
}

//POST Create workItem
var service = new ForgeService(new HttpClient(new ForgeHandler(Microsoft.Extensions.Options.Options.Create(new ForgeConfiguration()
{ ClientId = clientID, ClientSecret = clientSecret }))
{ InnerHandler = new HttpClientHandler() }));
var workItemsApiInstance = new WorkItemsApi(service);
var workItem = new WorkItem()

{
    ActivityId = clientID + "." + activity + "+" + alias,
    Arguments = new Dictionary<string, IArgument>()
{
    {
        "rvtFile",
        new XrefTreeArgument()
        {
            PathInZip = fileNames[n],
            Url = downloadUrl
        }

    }, {
        "exportChangesSettings",
        new XrefTreeArgument()
        {
            Url = urlDownloadExportChangesSettings
        }
    }, {

        "Result",
        new XrefTreeArgument()
        {
            LocalName = outputFileName,
            Verb = Verb.Put,
            Url = uploadUrl
        }
    }
}
};
var workItemResult = await workItemsApiInstance.CreateWorkItemAsync(workItem);
var workItemStatus = await api.GetWorkitemStatusAsync(workItemResult.Content.Id);
autodesk-forge
  • 1 respostas
  • 15 Views
Martin Hope
Nabeel Saeed
Asked: 2025-04-10 21:15:07 +0800 CST

Como posso sobrepor texto usando o TradingView Pine Script?

  • 5

Gostaria de sobrepor texto ao meu gráfico do TradingView. Gostaria de mostrar o texto "sobrecomprado" no nível RSI 85, centralizado em branco, e também mostrar o texto "sobrevendido" no nível RSI 15. Mas não sei como fazer isso. Um rótulo ou texto mostra "sobrecomprado" no RSI 85 e "sobrevendido" no RSI 15 acima das linhas. Alguém pode me ajudar a fazer isso? Obrigado.

insira a descrição da imagem aqui

Como posso adicionar o texto?

Este é o código que tenho até agora:

//@version=4
study(title="Relative Strength Index", shorttitle="RSI", format=format.price, precision=2, resolution="")
len = input(14, minval=1, title="Length")
src = input(close, "Source", type = input.source)
up = rma(max(change(src), 0), len)
down = rma(-min(change(src), 0), len)
rsi = down == 0 ? 100 : up == 0 ? 0 : 100 - (100 / (1 + up / down))
plot(rsi, "RSI", color=color.rgb(255, 255, 255))
band6 = hline (85, "upper band2", color=#ffffff70,linestyle=hline.style_dotted, linewidth=1)
band5 = hline (70, "upper Band3", color=#ffffff70,linestyle=hline.style_dotted, linewidth=1)
band4 = hline (60, "upper band4", color=#ffffff70,linestyle=hline.style_dotted, linewidth=1)
band2 = hline (30, "lower band2", color=#ffffff70,linestyle=hline.style_dotted, linewidth=1)
band1 = hline (15, "lower band3", color=#ffffff70,linestyle=hline.style_dotted, linewidth=1)
band0 = hline (00, "lower band4", color=#ffffff70,linestyle=hline.style_dotted, linewidth=1)

É assim que meu gráfico está até agora:

captura de tela do gráfico do TraderView sem texto

view
  • 1 respostas
  • 40 Views
Martin Hope
PAMPA ROY
Asked: 2025-04-10 21:14:32 +0800 CST

Estamos migrando do Spring 2.xx (Hibernate 5) para o Spring 3.xx (Hibernate 6). O caso de teste está usando H2. Mas estamos enfrentando um problema de restrição de chave única.

  • 5

Classe de entidade

@Getter
@Setter
@NoArgsConstructor
@Entity
@ToString
@Table(name = "category_config")
public class CategoryConfig extends BaseEntity {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @NotNull(groups = Existing.class)
    @Null(groups = New.class)
    private Long categoryConfigId;

Classe de serviço

CategoryConfig pública addCategory(CategoryConfig

categoryConfig,String tenantId) {
    log.info(" info categoryConfig {} ", categoryConfig);
    if (categoryConfig == null||categoryConfig.getDeptNbr()==null) {
        throw new AllocationRuntimeException(ErrorCodes.CATEGORY_NUMBER_MANDATORY.getError());
    }
    categoryConfig.setTenantId(tenantId);
    categoryConfig.setAllocationStatus(ItemSetupAllocationStatus.PROGRESS.getValue());
    categoryConfig.setItemType(ItemType.INSEASON.getValue());
    try {
        return categoryConfigRepository.save(categoryConfig);
    } catch (Exception e) {
        throw new AllocationRuntimeException(e,
                ErrorCodes.CATEGORY_NUMBER_ALREADY_CONFIGURED.getError(categoryConfig.getDeptNbr()));
    }
}

configuração h2:

spring:
    cloud:
        gcp:
          core:
            enabled: false
          bigquery:
            datasetName: test
            project-id: test
            enabled: false
        azure:
           storage:
              blob:
                storage-url: https://test.blob.core.windows.net
    datasource:
        driver-class-name: org.h2.Driver
        url: jdbc:h2:mem:testdb;DB_CLOSE_ON_EXIT=FALSE
        username:
        password:
    jpa:
        defer-datasource-initialization: true
        database-platform: org.hibernate.dialect.H2Dialect
        show-sql: true
        properties:
            hibernate:
                format_sql: true
                ddl-auto: update

Dados dentro de h2:

INSERT INTO category_config(category_config_id, dept_nbr, dept_desc, created_by, created_on, last_updated_by, last_updated_on, sum_need_qty_cdf, sum_need_qty_legacy, allocated_items, wk_supply, wk_supply_legacy, allocation_description, inherit_global_decile, isVLTRequired, tenant_id, allocation_status, item_type, current_doh) VALUES(1, 202, 'edit cat test', 's0k06wm', '2022-08-26', 's0k06wm', '2022-08-26', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'sams_us', 'Allocation available', 'inseason,preseason',7)
INSERT INTO category_config(category_config_id, dept_nbr, dept_desc, created_by, created_on, last_updated_by, last_updated_on, sum_need_qty_cdf, sum_need_qty_legacy, allocated_items, wk_supply, wk_supply_legacy, allocation_description, inherit_global_decile, isVLTRequired, tenant_id, allocation_status, item_type, current_doh) VALUES(2, 12, 'cat test 12', 's0k06wm', '2022-08-26', 's0k06wm', '2022-08-26', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'sams_mx', 'Allocation available', 'inseason',8)
INSERT INTO category_config(category_config_id, dept_nbr, dept_desc, created_by, created_on, last_updated_by, last_updated_on, sum_need_qty_cdf, sum_need_qty_legacy, allocated_items, wk_supply, wk_supply_legacy, allocation_description, inherit_global_decile, isVLTRequired, tenant_id, allocation_status, item_type, current_doh) VALUES(3, 14, 'cat test 14', 's0k06wm', '2022-08-26', 's0k06wm', '2022-08-26', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'sams_mx', 'Allocation available', 'inseason,preseason',8)
INSERT INTO category_config(category_config_id, dept_nbr, dept_desc, created_by, created_on, last_updated_by, last_updated_on, sum_need_qty_cdf, sum_need_qty_legacy, allocated_items, wk_supply, wk_supply_legacy, allocation_description, inherit_global_decile, isVLTRequired, tenant_id, allocation_status, item_type, current_doh) VALUES(4, 7, 'JUGUETES', 's0k06wm', '2022-08-26', 's0k06wm', '2022-08-26', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'sams_mx', 'Allocation available', 'inseason,preseason',8)
INSERT INTO category_config(category_config_id, dept_nbr, dept_desc, created_by, created_on, last_updated_by, last_updated_on, sum_need_qty_cdf, sum_need_qty_legacy, allocated_items, wk_supply, wk_supply_legacy, allocation_description, inherit_global_decile, isVLTRequired, tenant_id, allocation_status, item_type, current_doh) VALUES(5, 1990, 'edit cat test', 's0r0e4g', '2023-05-30', 's0r0e4g', '2023-05-30', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'sams_us', 'Allocation available', 'inseason',8)
INSERT INTO category_config(category_config_id, dept_nbr, dept_desc, created_by, created_on, last_updated_by, last_updated_on, sum_need_qty_cdf, sum_need_qty_legacy, allocated_items, wk_supply, wk_supply_legacy, allocation_description, inherit_global_decile, isVLTRequired, tenant_id, allocation_status, item_type, current_doh) VALUES(6, 5000, 'test cat', 's0k06wm', '2022-08-26', 's0k06wm', '2022-08-26', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'sams_mx', 'Allocation available', 'inseason,preseason',8)

Estava funcionando bem no Spring 2.xx, mas no Spring 3.xx estou conseguindo

could not execute statement [Unique index or primary key violation: "PRIMARY KEY ON PUBLIC.CATEGORY_CONFIG(CATEGORY_CONFIG_ID) ( /* key:1 */ NULL, 7, NULL, 202, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, CAST(1 AS BIGINT), TIMESTAMP '2022-08-26 00:00:00', TIMESTAMP '2022-08-26 00:00:00', NULL, 'Allocation available', 's0k06wm', 'edit cat test', 'inseason,preseason', 's0k06wm', 'sams_us')"; SQL statement:
insert into category_config (allocated_items,allocation_description,allocation_status,created_by,created_on,current_doh,current_stock_pct,dept_desc,dept_nbr,inherit_global_decile,isvltrequired,item_type,last_updated_by,last_updated_on,margin_onhand,profit,sales_amt,sales_qty,sum_need_qty_cdf,sum_need_qty_legacy,tenant_id,total_oh_qty,wk_supply,wk_supply_legacy,category_config_id) values (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,default) [23505-224]] [insert into category_config (allocated_items,allocation_description,allocation_status,created_by,created_on,current_doh,current_stock_pct,dept_desc,dept_nbr,inherit_global_decile,isvltrequired,item_type,last_updated_by,last_updated_on,margin_onhand,profit,sales_amt,sales_qty,sum_need_qty_cdf,sum_need_qty_legacy,tenant_id,total_oh_qty,wk_supply,wk_supply_legacy,category_config_id) values (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,default)]; SQL [insert into category_config (allocated_items,allocation_description,allocation_status,created_by,created_on,current_doh,current_stock_pct,dept_desc,dept_nbr,inherit_global_decile,isvltrequired,item_type,last_updated_by,last_updated_on,margin_onhand,profit,sales_amt,sales_qty,sum_need_qty_cdf,sum_need_qty_legacy,tenant_id,total_oh_qty,wk_supply,wk_supply_legacy,category_config_id) values (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,default)]; constraint [PRIMARY KEY]

Usando h2 versão 2.2.224

Anteriormente, funcionava bem. Há algum problema no Hibernate 6 com GenerationType.IDENTITY? A propósito, estamos passando categoryConfigId como nulo ao chamar o método save. Além disso, não declarei nenhuma tabela de criação explícita em h2, pois isso não era necessário em versões anteriores.

spring-boot
  • 1 respostas
  • 25 Views
Martin Hope
NewUsr_stat
Asked: 2025-04-10 20:58:26 +0800 CST

Marcar datas repetidas por ID

  • 2

suponha que tenha o seguinte:

data DB;
  input ID :$20. Admission :date09. Discharge :date09.; 
  format Admission date9. Discharge date9.;
cards;
0001 13JAN2017 25JAN2017 
0001 13JAN2017 25JAN2017 
0001 13JAN2017 25JAN2017
0001 11MAR2017 16MAY2017 
0001 30JAN2019 04MAR2019 
0002 11SEP2014 15SEP2014 
0002 28DEC2014 03JAN2015 
0002 28DEC2014 03JAN2015 
;


Existe uma maneira de obter o seguinte?

data DB1;
  input ID :$20. Admission :date09. Discharge :date09. Index; 
  format Admission date9. Discharge date9.;
cards;
0001 13JAN2017 25JAN2017 1
0001 13JAN2017 25JAN2017 .
0001 13JAN2017 25JAN2017 .
0001 11MAR2017 16MAY2017 1
0001 30JAN2019 04MAR2019 1
0002 11SEP2014 15SEP2014 1
0002 28DEC2014 03JAN2015 1
0002 28DEC2014 03JAN2015 .
;

Em outras palavras, eu gostaria de adicionar uma coluna Índice contendo um valor ausente para todas as datas repetidas, exceto a primeira, por ID.

sas
  • 1 respostas
  • 31 Views
Martin Hope
Ian
Asked: 2025-04-10 20:16:50 +0800 CST

Java - Excluindo entradas de console anteriores do System.in - Por que uma versão do meu código funciona e a outra não?

  • 7

A diferença no código está no método deleteInput(). Todo o resto é igual. A pergunta está no final, porque se trata da saída do console.

O código:

public class DeletePreviousInputs {
    static Scanner scanner = new Scanner(System.in);

    public static void main(String[] args) throws InterruptedException, IOException {
        System.out.println("write something in the console");
        /*
        * What I wrote:
        1 <enter> 2 <enter> 3 <enter> 4 <enter>
        */
        Thread.currentThread();
        Thread.sleep(8000); //simulates delay
        deleteInput();
        System.out.println("after input should be deleted");
        System.out.println(scanner.nextLine());
        System.out.println(scanner.nextLine());
        System.out.println(scanner.nextLine());
    }

    //Version 1 of the deleteInput()-Method:
    private static void deleteInput() throws InterruptedException {
        try {
            while (System.in.available() > 0) {
                //This is the part, where the code will differ in Version 2
                scanner.nextLine();
            }
        } catch (IOException e) {
            e.printStackTrace();
        }
    }

    //Version 2 of the deleteInput()-Method:
    private static void deleteInput() throws InterruptedException {
        try {
            while (System.in.available() > 0) {
                //This is the part, where the code differs
                Scanner dummyScanner = new Scanner(System.in);
                dummyScanner.nextLine();
            }
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}

Versão de saída 1:

write something in the console
1
2
3
after input should be deleted
2
3

Versão de saída 2:

write something in the console
1
2
3
after input should be deleted

Por que a versão 1 não exclui/ignora todas as entradas anteriores? Por que a versão 2 funciona perfeitamente?

Tentei excluir todas as entradas anteriores de System.in para que apenas as mais recentes fossem reconhecidas pelo Scanner. Não esperava ver diferença na funcionalidade entre os dois métodos deleteInput(). Não entendo por que uma versão funciona e a outra não.

Atualizar:

@Sash (Não posso responder ao seu comentário por algum motivo, então atualizo aqui) Eu tentei e alterei apenas o método deleteInput() para isso:

System.out.println("deleteInput()-method has started");
while (scanner.hasNextLine()) {
    scanner.nextLine();
}
System.out.println("deleteInput()-method has ended");

Mas isso cria um loop e o método nunca é encerrado. Aqui está a saída que recebo:

write something in the console
1
2
3
deleteInput()-method has started

Se eu substituir scanner.nextLine() por:

if(scanner.nextLine().isEmpty()) {
    break;
}

ele também não sai do método.

java
  • 2 respostas
  • 72 Views
Martin Hope
vamsiampolu
Asked: 2025-04-10 20:04:14 +0800 CST

Decodifique uma string base64 e codifique-a como hexadecimal usando xxd

  • 8

Primeiro, pego uma string codificada em base64 e a decodifico:

local base64_str="OQbb8rXnj/DwvglW018uP/1tqldwiJMbjxBhX7ZqwTw="
echo "${base64_str}" | base64 --decode > foo.txt

O tamanho do arquivo binário é 32 bytes com base em:wc -c < foo.txt

Eu costumo xxdcodificar o valor no arquivo para o formato hexadecimal:

xxd -p ./foo.txt ./foo.hex.txt

O valor hexadecimal no arquivo foo.hex.txt é:

3906dbf2b5e78ff0f0be0956d35f2e3ffd6daa577088931b8f10615fb66a
c13c

O tamanho do arquivo hash codificado é de 66 bytes usandowc -c < foo.hex.txt

Gostaria de pegar a string base64 e convertê-la para hexadecimal de modo que ela permaneça uma string de 32 bytes que eu possa usar com o openssl para criptografar e descriptografar usando cifras aes-256.

local iv_hex=$(base64_to_hex "${iv}")
local key_hex=$(base64_to_hex "${key}")

openssl enc -aes-256-ctr -K "${key_hex}" -iv "${iv_hex}" -in "${input_file}" -out "${output_file}"
bash
  • 2 respostas
  • 111 Views
Martin Hope
mstdmstd
Asked: 2025-04-10 20:00:44 +0800 CST

Como usar o valor Carbon para adicionar outro campo de tempo?

  • 5

No laravel 10 / php 8.2 eu tenho um campo de tempo e no modelo eu defini o cast:

<?php

namespace App\Casts;

use Carbon\Carbon;
use Illuminate\Contracts\Database\Eloquent\CastsAttributes;
use Illuminate\Database\Eloquent\Model;

class TimeCast implements CastsAttributes
{
    public function get(Model $model, string $key, mixed $value, array $attributes): mixed
    {
        return  Carbon::parse($value)->format('H:i');
    }

    public function set(Model $model, string $key, mixed $value, array $attributes): mixed
    {
        return $value;
    }
}

e no modelo de item:

protected function casts(): array
{
    return [
        'time' => TimeCast::class,
    ];
}

Preciso de um valor de Carbono (com tempo zero) para adicionar outro campo de tempo. Eu faço:

$calcDate = Carbon::parse(Carbon::now(\config('app.timezone')))->startOfDay();
$calcDate->addDays(5);

$item = Item::find($id);
$dateTill = $calcDate->addMinutes($item->time);
dd(Carbon::parse($dateTill));
            

Mas em $dateTill vejo apenas o valor $calcDate (+5 dias sem tempo).

Como posso fazer isso?

  • 2 respostas
  • 51 Views
Martin Hope
Swapnil Supekar
Asked: 2025-04-10 19:59:22 +0800 CST

Mesclar de uma coluna diferente até uma linha em branco

  • 5

Quero mesclar o valor da célula com "/" se o próximo valor da coluna A estiver em branco. Anexei uma imagem original.insira a descrição da imagem aqui

Quero um resultado como esse. insira a descrição da imagem aqui

Dim ws As Worksheet
Dim lastRow As Long
Dim i As Long, j As Long
Set ws = ThisWorkbook.Sheets("Ruff")
lastRow = ws.Range("B:B").SpecialCells(xlCellTypeLastCell).Row
i = 1
j = 1

For i = 3 To lastRow
     
 If Not ws.Cells(i + 1, "A").Value = "" Then
            ws.Cells(i, "G").Value = ws.Cells(i, "B").Value
 Else
    j = i
    Do Until Not IsEmpty(ws.Cells(i, 1).Value)
        ws.Cells(j, "G").Value = ws.Cells(i, "B").Value
        ws.Cells(j, "G").Value = ws.Cells(j, "G").Value & "/" & ws.Cells(i + 1, "B").Value
        i = i + 1
    Loop
    
    
 End If
Next i

End Sub   
excel
  • 1 respostas
  • 44 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