lunes, 23 de abril de 2018
Best way to kill a thread class in Python
class CloudInteractor(threading.Thread):
blablablabla
c = CloudInteractor()
c.start()
# Kill
del c
Instalar dependencias para Android Studio Ubuntu 17.10
apt install lib32z1 lib32ncurses5 lib32stdc++6 libbz2-1.0:i386 libbz2-dev:i386 libbz2-1.0 libbz2-dev
miércoles, 18 de abril de 2018
Run mqtt-spy in Ubuntu 17.10
first install javafx deps
sudo apt-get install openjfx
Then download the latest jar and put in /opt
Download: https://github.com/eclipse/paho.mqtt-spy/wiki/Downloads
Run!
sudo apt-get install openjfx
Then download the latest jar and put in /opt
Download: https://github.com/eclipse/paho.mqtt-spy/wiki/Downloads
Run!
miércoles, 11 de abril de 2018
Publish / Share / Register your own library in PlatformIO Library Registry
Step 1: publish your project on github
You must first create your manifest file that must be called "library.json" and it must be in the root of the project
In my case it has the following structure:
{ "name": "EasyOta", "keywords": "ota, over,to, air,esp8266", "description": " The easiest way to implement ota on an esp8266 based chip using an HTTP server", "repository": { "type": "git", "url": "https://github.com/Eitol/EasyOta.git" }, "authors": [ { "name": "Hector Oliveros", "email": "hector.oliveros.leon@gmail.com", "maintainer": true } ], "license": "MIT", "version": "1.0", "frameworks": "arduino", "platforms": "espressif8266" }
Step 2: copy the url of the raw project
The url is some like this:
https://raw.githubusercontent.com/GITHUB_USER/PROJECT/master/library.json
Example:
For my project with url = https://github.com/Eitol/EasyOta
Then, the url is:
https://raw.githubusercontent.com/Eitol/EasyOta/master/library.json
Step 3: Use the url to register your library
The command is:
platformio lib register [MANIFEST_URL]
example:
platformio lib register https://raw.githubusercontent.com/Eitol/EasyOta/master/library.json
lunes, 9 de abril de 2018
FIX: No output from qDebug
Si qDebug no muestra nada en Qt 5.9 entonces debes crear un fichero qtlogging.ini (vacio) en el directorio home:
.config/QtProject/qtlogging.ini
lunes, 2 de abril de 2018
Raspberry PI 3 Composite video problem
Si conectando la raspberry al television usando un cable plug - RCA ves una imagen como la siguiente:
es porque el cable que estas usando no es el adecuado y tiene intercambiado el pin de tierra con el de video:
Solución:
Solución cara pero fácil: Comprar un cable que sea compatible que transmita el video por el último segmento (como los de Apple)
Solución fea: Soldar los cables a la rb: https://www.raspberrypi.org/forums/viewtopic.php?t=181288
Solución fácil y barata: Con un conector dc hembra y otro macho puedes pasar intercambiar la señal de video por la de tierra (Esta me funcionó perfecto)
Pueder ver mas info aquí:
Suscribirse a:
Entradas (Atom)