por Miguel | Dic 3, 2019 | python
Recently working with Flask and using Apache2 as WSGI a new error appeared in the apache logs for a new feature added to the API in Flask: [Tue Dec 03 15:47:14.706011 2019] [wsgi:error] [pid 5892:tid 140174218479360] [client 123.456.789.012:52356] mod_wsgi (pid=5892):...
por Miguel | Oct 9, 2018 | python
Creando los directorios iniciales y prerequisitos Primero creo un directorio (APIS) donde ordenadamente trabajaré los proyectos de API REST: mortiz@florida:~/Documents/projects/python/APIS/ Y dentro del directorio APIS el nuevo proyecto a desarrollar, que al ser el...
por Miguel | Oct 4, 2018 | python
Verify you are installing flask for your correct python version inside your virtual environment. I’ve came across the problem: bash: flask: command not found And the first StackOverflow answer was: Flask 0.10 has no flask command, it was added in 0.11. But my...
por Miguel | May 9, 2018 | python
I love python, there are many ways to solve problems, I specially like when seeing short-code or reduced solutions using advanced functions of the language but because I’m learning to code, I prefeer solving problems by dividing them into smaller parts, this is...
por Miguel | May 7, 2018 | python
A pangram is a sentence that contains every single letter of the alphabet at least once. For example, the sentence «The quick brown fox jumps over the lazy dog» is a pangram, because it uses the letters A-Z at least once (case is irrelevant). I’ve designed this...
por Miguel | May 7, 2018 | python
This code snippet is designed to find the missing number in a sequence of integers with python 2.7. I’ve tested it with several lists in python which are commented at the start of the script. #!/usb/bin/python #miguel.ortiz #s=[-1, -4, -7, -10, -13, -16, -19,...