Posts by Willian Jesus Da Silva • 378 points
16 posts
-
0
votes1
answer256
viewsA: Problem to convert . py to executable with cx_freeze
To create python executables more practically, use the PYINSTALLER library. It is simpler and automatically maps file dependencies.
-
2
votes1
answer149
viewsA: Which file type should I use to store the python data
For configuration storage, you can use the . conf and . ini extension using lib Configparser. In case you need to save application data and images. You can use the SQLITE database, it is a local…
-
1
votes3
answers420
viewsA: Is it possible to create an application entirely with Javascript?
Alexander. For the development of applications using purely JS there are numerous frameworks for this. For back-end there is the NODEJS Front I advise reactjs (This framework has been growing a lot…
-
1
votes1
answer52
viewsA: The URL responds only with the open site
João, When you log in to the main website it gives you a navigation cookie. To make such a request you must pass the header parameters together with the request according to the code below. import…
-
1
votes1
answer276
viewsA: Turn python script into database executable
You have two options. Work with some bank on a virtual machine and connect your app to it. or Migrate your database to a sqlite database. it is a local database(A file) where who makes the…
-
2
votes2
answers124
viewsA: Count letter occurrences in a case insensitive sentence
You can only use upper and lower in the comparison letter and use a single for to add the position and compare according to the following code: frase = input('Digite uma frase: ') letra =…
pythonanswered Willian Jesus Da Silva 378 -
1
votes2
answers426
viewsA: union of lists
From what I understand, you’re making a function that checks the data of two array’s and adds in the first one what you have in the second but not in the first one. If that’s correct, follow the…
pythonanswered Willian Jesus Da Silva 378 -
0
votes1
answer49
viewsA: Two Apps the Same Bank
Depends, You will have to encode in such a way that there cannot be two applications editing the same record. The correct would be to have only one back-end where it will validate if the requests…
firebaseanswered Willian Jesus Da Silva 378 -
0
votes2
answers1309
viewsA: How to make Redirect on the page with Django
Try changing the Return render from your if to Redirect. Ex: def gauss(request): if request.method == 'POST': g = Gauss() matriz = readCSV(request) resultado = g.executar(matriz) return…
-
1
votes4
answers620
viewsA: How to delete files and folders recursively safely with Python?
I have a script that deletes all entries from Windows cache folders, I think this can help you. import os import win32con, win32api list = ['C:\Windows\Prefetch','C:\Windows\Temp'] def…
-
1
votes1
answer59
viewsA: Doubt with matrix in Python
The python structure you showed dismembered would be something like this: matrix = [] aux = [] for i in range(10): for j in range(2): aux.append(0) matrix.append(aux) aux = [] print(matrix)…
-
3
votes1
answer92
viewsA: npyscreen with accessibility
Actually the npyscreen lib has no accessibility options, as well as 90% of the python graphic libs. Unica lib of graphic libraries accessible to the visually impaired that I know is wxpython.…
python-3.xanswered Willian Jesus Da Silva 378 -
0
votes1
answer97
viewsQ: Convert date string to date
I need to convert the date of format 'Aug 29, 2019' to 06/08/2019 however I am not getting with strptime, Follow the error. Valueerror: time data 'Aug 29, 2019' does not match format ' %m %d, %Y'…
-
1
votes1
answer73
viewsQ: Login GITLAB using request
I am trying to log in to gitlab using python requests library but is showing the error (The change you requested was Rejected (422)) Note. I cannot use any external library(Selenium, bs4,…
-
3
votes4
answers2211
viewsQ: Javascript converting wrong date
I need to convert date of type yyyy-mm-dd for dd/mm/yyyy. For this, I’m using the function in Javascript: data_formatar = new Date("2019-01-15") data = data_formatar.toLocaleDateString('pt-BR');…
-
0
votes0
answers23
viewsQ: WEB Player for ASF
I’m having trouble trying to create a video player in html to run files in ASF. In the html pure, does not play in this format and the company where I work, only accepts this video format. Is there…