Posts by João Paulo • 26 points
4 posts
-
1
votes1
answer34
viewsA: Execution time of the code
Use the timeit, he is more precise than the time for fast code snippet. import timeit tempo_inicial = timeit.default_timer() print('Olá Mundo!') tempo_final = timeit.default_timer() print('Tempo…
python-3.xanswered João Paulo 26 -
0
votes1
answer241
viewsA: (python) Socket does not connect to external network
The problem is that server.py doesn’t know the way to the client.py if they’re not on the same network. Open your command prompt and run the following command: tracert google.com You will notice…
-
0
votes1
answer18
viewsA: the image I want to put in the window n appears what I do?
Try So: import javax.swing.ImageIcon; import javax.swing.JFrame; import javax.swing.JLabel; public class Janela extends JFrame { ImageIcon imagem = new ImageIcon(getClass().getResource("/parado…
javaanswered João Paulo 26 -
0
votes1
answer233
viewsA: Problems with Spring Security
To allow any user to access a specific page you must add the following line: <intercept-url pattern="/cadastro" access="permitAll"/> But you have to add after: <intercept-url pattern="/**"…