Python Visual Studio Code – Stack Overflow en español

tengo un problemas…cuando quiero ejecutar algo no me deja y me saca todo malo, aparte me pide una extensión a Python y no me arregla nada eso, necesito resolver ese programa hasta he intentado descargar de nuevo e instalar los paquetes que me pide

c++ – Programa Vetor-Colunas – Stack Overflow em Português

Alguém pode me dar uma mão eu to começando a programar a pouco tempo e eu to tentando fazer este programa ler as 4 primeiras colunas e calcular a nota final e a media mas nn consigo botar a solução correta na media aritmética.

#include <stdio.h>
#include <windows.h>

int main(){
int i,j, M(5)(5), maior;
float mediafinais=0;
for(i=0;i<2;i++){

    printf("nnNumero da Matricula (%d) : ",i      );
    scanf("%d", &M(i)(0));
    
    printf("Nota Av1: ");
    scanf("%d", &M(i)(1));
    
    printf("Nota Av2: ");
    scanf("%d", &M(i)(2));
                      
    printf("Media dos trabalhos : ");
    scanf("%d", &M(i)(3));                    
    
    printf("Nota Final: %d", M(i)(1) + M(i)(2) + M(i)(3));  
                  
            
    
}

maior=M(0)(3);
int al=0;
for(i=0;i<2;i++){
   
        if(maior<M(i)(3)){
            maior=M(i)(3);
            al=i;
        }
    
}

printf("n A Maior Nota Final e do aluno com a matricula :");
printf(" %d nn",M(al)(0));
printf("nnMedia aritmetica das notas finais: %d", M(i)(5) + M(j)(5) / 2);
printf("nnn");

}

Automating Google AI notebook – Stack Overflow

How do I use google cloud scheduler to trigger a function in google AI notebook that will extract data from google biquery, process that data and store it in google cloud storage. I had tried cloud functions already and it gets timed out so I am exploring the option of commissioning a VM instances and running a notebook on it. Thanks for your responses

uri – Spring UriComponentsBuilder – Stack Overflow

I have a String with both an encoded part and a variable.

https://example.com/foo%2Fbar/{variable}

I’m trying to create a URI object like this:

String s = "https://example.com/foo%2Fbar/{0}"
URI uri = UriComponentsBuilder.fromHttpUrl(s)
                .buildAndExpand("baz")
                .toUri();

The result is https://example.com/foo%252Fbar/baz but I would like to get https://example.com/foo%2Fbar/baz.

How can I make sure my variable is expanded but avoid the encoded part to be encoded again?

Inno Setup ComponentsList ItemFontStyle – Stack Overflow

I have a list of components with an index to make some of them stand out, I can make them bold, but I can’t make them green.

// We colour certain components on the wpSelectComponents page.
procedure SetCompGreenFont();
var
   I: Integer;
begin
   for I:=0 to GetArrayLength(NewComponents)-1 do
   begin
       //NewComponents indexes start at 0.
       WizardForm.ComponentsList.ItemFontStyle(NewComponents(I)) := (fsBold);
   end;
end; 

Text

So I get them all but I can’t integrate the (NewComponents(I))

WizardForm.ComponentsList.ItemFontStyle.Font.Color := clGreen

Page not found – Stack Overflow

Page not found – Stack Overflow

encoding – How to investigate Fortiguard alert for buffer overflow?

For a few days, Fortiguard sends me this alert: Quest.NetVault.Backup.Multipart.Request.Header.Buffer.Overflow

The packets come from the visitor wifi network and they are sent to google.com.

I sent a message to Fortinet support and waiting for the answer.

I assume it can be a false positive but the attack context in alert look like:

"AAAAAAAAAAAAAAAAAAAAAAAAAAA8dKW2P=AAAAA" 

(not the real string but it contains some “AAAAA” and some base64 string).

How can I investigate further?

Page not found – Stack Overflow

Page not found – Stack Overflow

Ajuda com python Tkinter – Stack Overflow em Português

Bom dia,
Tem uma coluna a mais mas não estou conseguindo perceber onde esta o erro.
segue o código:

from tkinter import*
from tkinter import messagebox
from tkinter import ttk
class arquivo:
     def __init__(self,master=None):
         self.widget1=Tk()
         self.widget1.title("Programa Transanches")
         self.tabela=ttk.Treeview(self.widget1,selectmode="browse",column=("column1","column2","column3","column4","column5"))
         self.tabela.column("column1", width=200, minwidth=50, stretch=NO)
         self.tabela.heading("#1", text="Numero Carga")
         self.tabela.grid(row=1, column=0)
         self.tabela.column("column2", width=200, minwidth=50, stretch=NO)
         self.tabela.heading("#2", text="Cidades")
         self.tabela.grid(row=1, column=1)
         self.tabela.column("column3", width=200, minwidth=50, stretch=NO)
         self.tabela.heading("#3", text="Estados")
         self.tabela.grid(row=1, column=2)
         self.tabela.column("column4", width=200, minwidth=50, stretch=NO)
         self.tabela.heading("#4", text="Total de Peso")
         self.tabela.grid(row=1, column=3)
         self.tabela.column("column5", width=200, minwidth=50, stretch=NO)
         self.tabela.heading("#5", text="Total de Volumes")
         self.tabela.grid(row=1, column=4)
         self.widget1.mainloop()

Matriz transpuesta en c++ – Stack Overflow en español

Que onda, tengo que hacer una matriz transpuesta, lo que sucede es que tengo este código que hice funcionar bien y me regresa este resultado.

(1)(4)

(2)(5)

(3)(6)

Pero me tiene que dar esto:

(1)(3)(5)

(2)(4)(6)

pero no me da, ya intente la única que me sale es la que ya tengo hecha, no se si alguien me pueda ayudar, dejo mi código como referencia.
(Ya la hice (2)(3), intenté hacer cambios, en i, y en x, para hacerlos mas cortos, en fin, varios cambios pero no me da) Saludos comunidad

    #include <iostream>
using namespace std;
int main() {
    int a(3)(3);
    
    cout<<"Digite los numeros a ordenar"<<endl;
    for(int i=0; i<3; i++){
        for(int j=0; j<3; j++){
            cout<<"Posicion"<<"("<<i<<")"<<"("<<j<<")"<<endl;
        cin>>a(i)(j);
        }
    }
    for(int x=0; x<3; x++){
        for(int y=0; y<3; y++){
           cout<<"("<<a(y)(x)<<")";
        }
        cout<<endl;
    }

    return 0;
}