Posts by LuisHF • 348 points
19 posts
-
0
votes1
answer50
viewsQ: Update Data Power Query and Copy Values by VBA
I need to update some cells in my spreadsheet as soon as an update in the Power Query table is done, but cells only update the second time I run the code. Sub AtualizarDadosPowerQuery()…
-
0
votes2
answers50
viewsA: Error in python3 function
def media_ms(site_nome, site_ms): nome = str(site_nome) ms = float(site_ms) y = 0 while y <= 4: if y == 0: dic0 = {nome: ms} elif y == 1: dic1 = {nome: ms} elif y == 2: dic2 = {nome: ms} elif y…
-
-2
votes1
answer206
viewsQ: Initialize a Node.js server and connect to MS SQL
I’m starting to use Node.js and developing web applications, I believe this is a very basic doubt, but I found nowhere a solution to my problem. I need to connect my . js with MS SQL, found the…
-
0
votes4
answers2181
viewsQ: Check file extensions in Python
I need to check the extensions of all files inside a folder, for example: Pasta: arquivo1.txt arquivo2.wav arquivo3.mp3 arquivo4.mp3 arquivo5.mp3 arquivo6.txt output: txt, wav, mp3 Does anyone know…
-
1
votes0
answers49
viewsQ: What are C-levels?
Today I was reading something about c and I found the word 'trigraphs', I saw some strange codes, like ??! what that means, and why it is not very common to find?
-
1
votes1
answer5594
viewsQ: The python programming language can be used together with html
The programming language python can be used together with html? If so, how do I merge the two languages? In my knowledge, to call a file js in hmtl we can do it in 2 ways, by writing the script…
-
0
votes3
answers594
viewsA: How to set a column with adjustable size inside the container
Everything depends on the final product you want, it is quite relative... If you want to please every screen size, I suggest using only class="col-8" this way it will work for all types of screens,…
twitter-bootstrapanswered LuisHF 348 -
1
votes1
answer39
viewsA: Doubt regarding the inclusion of headers
Thinking of good practices we have to put ourselves in the place of other programmers who will read our code. Therefore, for them it would be easier to see a library that calls several functions or…
-
1
votes2
answers74
viewsA: Color adjustment of text on different themes
You can change the colors/fonts of the letters by css. In your js code, when the user calls the function that changes the background color, the commands for changing the theme will be executed, in…
-
1
votes1
answer65
viewsA: How to make a page accessible only to users at a certain level
Man I believe a lot in the reuse of code and projects, for this reason I believe you could go on the site https://aspnetboilerplate.com/ and create a project with a ready-to-go template instead of…
-
4
votes1
answer57
viewsA: Can I get an image of any directory on my PC to put on my HTML page?
Yes you can! Only if you want to put the site in the cloud no one will be able to see. 'What is indicated is: put everything in a folder, inside it, put your index.html, then create a folder for…
-
3
votes2
answers472
viewsA: How to read a JSON file dynamically? (ANGULAR 2)
Use the for, this way you ensure that all items in your file will be read: for (let i = 0; i < mensagem.length; i++) { this.adicionarMensagem(this.mensagem[i]); } the .length will be what will do…
-
2
votes2
answers412
viewsQ: How to store variables within the browser cache? (JS)
I am making a form and I want to store the data that the client enters in the browser cache, in case the tab is closed the client does not need to type everything again. What is the best means to…
-
1
votes2
answers48
viewsA: My <img> tag does not respond to my css settings
When you want to pass a size in the CSS you need to indicate in which measure you want to use, as the friend said in the answer above, we have the measure "px" which means pixel. We can use others…
-
1
votes2
answers1402
viewsA: How to change Link color in HTML?
Since you are using bootstrap in your code, its style will prevail, we can arrange this in two ways: 1-) As stated in the first reply 2-) Giving importance to your code: .menu{ margin: 0; font-size:…
-
0
votes1
answer3027
viewsQ: How to add localstorage in Typescript (Angular 6)
I have a code in Typescript (angular 6) in which I for educational reasons, want to know how to save various message variables with the following data in cache: adicionarMensagem(preparacao:…
-
0
votes1
answer48
viewsQ: Angular Treatment of JSON
I would like to know if it is necessary to process JSON to use two-way databinding in HTML. I was able to read it without the treatment, but I don’t know if this is the right way. Follows the code:…
-
0
votes1
answer972
viewsQ: How to add data to the JSON file in Angular 6
I have a code that sends and receives messages. I can read a local JSON file With this code in ngOnInit I can read what is inside the JSON file and turn it into a message that is displayed on the…
-
0
votes3
answers424
viewsQ: Block enter if textarea is empty
I’m trying to check if a textarea has valid text. Checking the space was easy, but the enter I don’t know how to check. enviar() { var num = 13; // 13 é o cód ascii do enter if (this.textoEmEdicao…
javascriptasked LuisHF 348