Posts by Augusto A • 194 points
11 posts
-
0
votes1
answer1522
viewsA: How to invert a character array in C?
If you want to invert the array and not just write its inverted values you must create another variable. One way to do it is like this: #include<stdio.h> #include<string.h> int main() {…
-
1
votes1
answer142
viewsA: Total count of characters without strlen
The comparison performed in the i < palavra makes no sense and will generate a loop and yet in your code you wouldn’t leave the while never because the variable i is not being added in the while,…
-
0
votes1
answer220
viewsA: Switching pages in an html table with beautifulsoup
Problem The pagination used in the results list depends on the execution of a javascript function and Beautifulsoup does not perform javascript, so you will not be able to access data obtained by…
-
1
votes2
answers427
viewsA: Web automation with Selenium or other tools without opening the nagevador?
I believe you can configure the browser to run without the interface in mode Headless, as in this example: const chrome = require('selenium-webdriver/chrome'); const firefox =…
-
2
votes3
answers710
viewsA: Take text area values separated by line
You can do using the split() to compile a list of the lines and traverse it by placing the tags of <div> and adding in ext: function text(){ var txt = document.getElementById('txt') var ext =…
javascriptanswered Augusto A 194 -
3
votes2
answers739
viewsA: return python function variable
It is not possible to access this way because descricao and descricao2 are valid variables only for the scope of the function gerar_graficos(). One solution would be to call these functions…
-
0
votes2
answers58
viewsA: Concatenate n characters of a typed word
A simple method of you doing this is like this: #include <stdio.h> #include <string.h> main() { char p[100], c, invertida[100]; int tam, i; printf ("\n Digite uma palavra: "); gets (p);…
-
1
votes1
answer993
viewsA: How to terminate a script with Python threads
You can use the main code to be your application’s menu and kill threads when needed, as in this simple example (Python 3): import threading import time def start(): t1 = Thread() t1.start() op = 0…
-
1
votes4
answers294
viewsA: How to shadow a text
Apparently the text-shadow is working, if you do not like the result I recommend you use filters, as in the example: In the second image I just used the filter: brightness(60%);, so the text becomes…
-
1
votes1
answer85
viewsA: Show specific attribute in Select using Python and Django
this is not related to function __str__ class? Try declaring the function __str__ returning the output you want in the model Useraddilplano, something like this: def __str__(): return…
-
1
votes0
answers47
viewsQ: A3 and WEB certificates
Hello, I know you have some questions related to the theme, but I could not draw any conclusions (at least of those I read), finally it is possible to apply A3 digital certificates (for…