Posts by Mr_Ghost • 135 points
8 posts
-
0
votes1
answer470
viewsA: Permissions command inside Dockerfile are not executed
I believe you need to change all files within html/ then simply sub-program all commands from chmod for these: RUN chmod -R 777 /var/www/html/ RUN chmod -R 777 /tmp About command chown actually it…
-
3
votes3
answers4130
viewsA: Get X and Y from the screen using PYTHON
Good a way to do this in autopygui would basically be like this: #pega o retorno da posicao atual de x e y do mouse e passa o valor da tupla para as duas variaveis x, y = pyautogui.position() print…
-
1
votes2
answers2386
viewsA: Error installing pyaudio and pocketsphinx
Hello, As I mentioned in the comments one of the solutions would be to download directly by package manager, as in your case is the Python 3 you can use the command: sudo apt-get install…
-
2
votes5
answers9375
viewsA: Program to find MMC in Python
Really what was causing this loop was the condition while True: so there is no parameter that tells Python that this condition can be false and will always run the script. Follow an example here…
-
0
votes1
answer816
viewsQ: Transfer file to linux server with Python
Hello, I’m looking to make a file Python that transfers all files from a local folder in my Windows for a specific path on my server Centos 7. At first that server is in my local network, but it…
-
1
votes2
answers64
viewsA: Database, display name via ID
If for some reason some player record is missing from the Scoreboard table, a LEFT JOIN can display all the names, follow an example: SELECT vencedor.nome AS vencedor, perdedor.nome AS perdedor FROM…
-
0
votes3
answers679
viewsA: How to validate a spinner?
Hello, So considering your Spinner will have a default value null, a simpler way to validate it would be like this: String valor = null; if(spinnerNome != null &&…
-
1
votes3
answers119
viewsA: How to style the field where the options of a tag select are?
As stated there is a limit to how far you can customize SELECT, but for cases like this there is Bootstrap. Recommendation of a read in their documentation Introduction. Here’s a small example I’ve…