Posts by Vitor Hugo • 48 points
8 posts
-
0
votes0
answers34
viewsQ: Error closing Lib()
I’m making an implementation of lib pjsua to work with Voip using python. from datetime import datetime from time import sleep from sys import exit from pysip.callbacks import AbstractCallCallback,…
-
0
votes2
answers297
viewsA: How to find the most common value within each column of an array using python?
To do the procedure you describe, you basically need the type Counter found in lib collections and function zip, python native. I will first paste the sample code and at the end I will explain. from…
-
0
votes1
answer2424
viewsA: requests.exceptions.Sslerror: Certificate Verify failed
One way to try to circumvent errors linked to HTTPS within lib requests is to use the parameter verify and save its value as False. As in the example of documentation: >>>…
-
0
votes1
answer104
viewsA: How to transform a list that will be given at the input into a matrix?
It is possible to accomplish this using list comprehension in python. I’m going to use a hypothetical example for believing it will facilitate your understanding: let’s imagine the following list:…
-
2
votes1
answer125
viewsA: Django View class keeps values
This is because when python will run a script it creates a kind of cache of the files involved (those files tralala.pyc or else the files that are inside the directory __pycache__). Therefore, it…
-
0
votes1
answer81
viewsA: How to edit something saved in the Python database
Briefly, you will use the render() so that when his view be called by a url, after doing the job assigned to it, it responds to the user with a template (like the html you yourself exemplified…
-
1
votes1
answer108
viewsQ: Django tests are not recognized
When executing the test commands of Django, no test is recognized. My file structure is as follows: Eagle/ eagle/ __init__.py settings.py urls.py wsgi.py dashboard/ __init__.py admin.py apps.py…
-
-1
votes1
answer395
viewsA: Change display according to <select> option
Come on, // Jquery básico $( document ).ready(function(){ // Mesmos dados anteriores, mas organizados de forma diferente var data = { 'Janeiro' : [ ['Dia 6','./videos/1.mp4'], ['Dia…