Black screen and LightDM doesn't unlock
-Add this to your /etc/lightdm/lightdm.conf file:
-1 -2 | [LightDM]
-logind-check-graphical=true
- |
diff --git a/about/index.html b/about/index.html new file mode 100644 index 0000000..76476ec --- /dev/null +++ b/about/index.html @@ -0,0 +1,265 @@ + + +
+ + +Hi!
+ +My name is Fernando. I’m a researcher and developer from Madrid, Spain.
+ +Add this to your /etc/lightdm/lightdm.conf file:
-1 -2 | [LightDM]
-logind-check-graphical=true
- |
This is a short tutorial on connecting a zigbee device (an Aqara cube) to an MQTT server, so you can control your zigbee devices from the network.
-If you're anything like me, you're probably a sucker for IoT devices. -For a long time, I've been using WiFi-enabled lights, and Amazon …
-Avoid HDMI flickering/intermittent blanking on RPI with a 1400x1050 VGA monitor.
-1 -2 -3 -4 -5 | hdmi_drive=2
-hdmi_group=2
-hdmi_mode=42
-disable_overscan=1
-config_hdmi_boost=7
- |
PPTP VPN connections will fail on a vanilla openwrt installation. -You need to install this module:
-1 | opkg install kmod-nf-nathelper-extra
- |
tqdm is a nice way to add progress bars in the command line or in a jupyter notebook.
- -1 -2 -3 -4 -5 | from tqdm import tqdm
-import time
-
-for i in tqdm(range(100)):
- time.sleep(1)
- |
Add this to your /etc/lightdm/lightdm.conf file:
-1 -2 | [LightDM]
-logind-check-graphical=true
- |
1 | (font-lock-mode)
- |
Today's post is half a quick note, half public shaming. In other words, it is a reminder to be very careful with OAuth tokens and passwords.
-As part of moving to emacs, I starting using the incredibly useful gh.el. -When you first use it, the extension saves either your …
-This is a quick note on proxying a local python application (e.g. flask) -to a subdirectory in Apache. This assumes that the file wsgi.py contains -a WSGI application with the name application. Hence, wsgi:application.
-1 -2 -3 -4 -5 | <Location /myapp/>
- ProxyPass http://127.0.0 … |
Developing a python module and publishing it on Github is cool, but most -of the times you want others to download and use it easily. That is the -role of PyPi, the python package repository. In this post I show you how -to publish your package in less than 10 …
-As part of the OpeNER -hackathon -we decided to build a prototype that would allow us to compare how -different countries feel about several topics. We used the OpeNER -pipeline to get the sentiment from a set of newspaper articles we -gathered from media in several languages. Then we aggregated …
-A simple trick. If you want to remove all the '.swp' files from a git -repository, just use:
-1 | git rm --cached '\*\*.swp'
- |
Finally, I've decided to set up a decent personal page. I have settled -for github-pages because I like the idea of keeping my site in a -repository and having someone else host and deploy it for me. The site -will be really simple, mostly static files. Thanks to Github, -Jekyll …
-Avoid HDMI flickering/intermittent blanking on RPI with a 1400x1050 VGA monitor.
-1 -2 -3 -4 -5 | hdmi_drive=2
-hdmi_group=2
-hdmi_mode=42
-disable_overscan=1
-config_hdmi_boost=7
- |
PPTP VPN connections will fail on a vanilla openwrt installation. -You need to install this module:
-1 | opkg install kmod-nf-nathelper-extra
- |
Add this to your /etc/lightdm/lightdm.conf file:
-1 -2 | [LightDM]
-logind-check-graphical=true
- |
1 | (font-lock-mode)
- |
This is a short tutorial on connecting a zigbee device (an Aqara cube) to an MQTT server, so you can control your zigbee devices from the network.
-If you're anything like me, you're probably a sucker for IoT devices. -For a long time, I've been using WiFi-enabled lights, and Amazon …
-tqdm is a nice way to add progress bars in the command line or in a jupyter notebook.
- -1 -2 -3 -4 -5 | from tqdm import tqdm
-import time
-
-for i in tqdm(range(100)):
- time.sleep(1)
- |
Today's post is half a quick note, half public shaming. In other words, it is a reminder to be very careful with OAuth tokens and passwords.
-As part of moving to emacs, I starting using the incredibly useful gh.el. -When you first use it, the extension saves either your …
-This is a quick note on proxying a local python application (e.g. flask) -to a subdirectory in Apache. This assumes that the file wsgi.py contains -a WSGI application with the name application. Hence, wsgi:application.
-1 -2 -3 -4 -5 | <Location /myapp/>
- ProxyPass http://127.0.0 … |
Developing a python module and publishing it on Github is cool, but most -of the times you want others to download and use it easily. That is the -role of PyPi, the python package repository. In this post I show you how -to publish your package in less than 10 …
-As part of the OpeNER -hackathon -we decided to build a prototype that would allow us to compare how -different countries feel about several topics. We used the OpeNER -pipeline to get the sentiment from a set of newspaper articles we -gathered from media in several languages. Then we aggregated …
-A simple trick. If you want to remove all the '.swp' files from a git -repository, just use:
-1 | git rm --cached '\*\*.swp'
- |
Finally, I've decided to set up a decent personal page. I have settled -for github-pages because I like the idea of keeping my site in a -repository and having someone else host and deploy it for me. The site -will be really simple, mostly static files. Thanks to Github, -Jekyll …
-
+
|
+
+
|
Add this to your /etc/lightdm/lightdm.conf file:
+ +[LightDM]
+logind-check-graphical=true
+
+
+
+ From tqdm’s github repository:
+ +++ + + + +tqdm means “progress” in Arabic (taqadum, تقدّم) and an abbreviation for “I love you so much” in Spanish (te quiero demasiado).
+
Avoid HDMI flickering/intermittent blanking on RPI with a 1400x1050 VGA monitor.
+
+
|
+
+
|
This is a short tutorial on connecting a zigbee device (an Aqara cube) to an MQTT server, so you can control your zigbee devices from the network.
-If you're anything like me, you're probably a sucker for IoT devices. -For a long time, I've been using WiFi-enabled lights, and Amazon dash buttons to control them. -To keep these (cheap Chinese) internet enabled devices away from your network and their respective cloud services, you'll probably want to set up a dedicated network in your router (more on this on a future post, maybe). -Another disadvantage of WiFi devices is that they're relatively power hungry.
-A popular alternative is using ZigBee for communication. -It is a dedicated protocol similar to bluetooth (BLE), with lower power requirements and bitrate.
-Take the (super cute) aqara cube as an example. -It is a small cube that detects rotation on all of its axes, and tapping events. -Here's a video:
-To connect to zigbee devices you will need a zigbee enabled gateway (a.k.a. hub), which connects to your WiFi network and your zigbee devices. -Once again, this means adding an internet-enabled device to your home, and probably a couple of cloud services.
-As an alternative, you can set up your own zigbee gateway, and control it to your home automation platform of choice (e.g. home assistant). -We will cover how to set up a zigbee2mqtt gateway that is also connected to an MQTT server, so you can use MQTT to control your devices and get notifications.
-What you need:
- -You will need to flash your sniffer. -For that, you only need to follow the instructions from the zigbee2mqtt documentation.
-Once you're done flashing, you're ready to set up the zigbee2mqtt server. -For convenience, I wrote a simple docker-compose to deploy a zigbee2mqtt server and a test mosquitto server:
-1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 -10 -11 -12 -13 -14 -15 -16 -17 -18 -19 -20 -21 -22 -23 -24 -25 -26 -27 -28 -29 -30 -31 -32 -33 | version: '2.1'
-services:
- zigbee2mqtt:
- image: koenkk/zigbee2mqtt
- container_name: zigbee2mqtt
- restart: always
- volumes:
- - ./z2m-data/:/app/data/
- devices:
- - "/dev/ttyACM0"
- networks:
- - hass
- mqtt:
- image: eclipse-mosquitto
- ports:
- - 1883:1883
- - 9001:9001
- networks:
- - hass
- volumes:
- - ./mosquitto.conf:/mosquitto/config/mosquitto.conf
- hass:
- image: homeassistant/home-assistant
- ports:
- - "8123:8123"
- networks:
- - hass
- volumes:
- - ./hass-config:/config
- - "/etc/localtime:/etc/localtime:ro"
-networks:
- hass:
- driver: overlay
- |
You can test your installation with:
-1 -2 -3 -4 -5 -6 | ❯ mosquitto_sub -h localhost -p 1883 -t 'zigbee2mqtt/#'
-online
-{"battery":17,"voltage":2925,"linkquality":149,"action":"rotate_right","angle":12.8}
-{"battery":17,"voltage":2925,"linkquality":141,"action":"slide","side":2}
-{"battery":17,"voltage":2925,"linkquality":120}
-{"battery":17,"voltage":2925,"linkquality":141,"action":"wakeu
- |
zigbee2mqtt supports the following events for the aqara cube: shake, wakeup, fall, tap, slide, flip180, flip90, rotate_left and rotate_right. -Every event has additional information, such as the sides involved, or the degrees turned.
-Now you are ready to set up home assistant support in zigbee2mqtt following this guide.
- -Finally, I've decided to set up a decent personal page. I have settled -for github-pages because I like the idea of keeping my site in a -repository and having someone else host and deploy it for me. The site -will be really simple, mostly static files. Thanks to Github, -Jekyll will automatically generate static -pages for my posts every time I commit anything new to this repository.
-But Jekyll can be used independently, so if I ever choose to host the -site myself, I can do it quite easily. Another thing that I liked about -this approach is that the generated html files can be used in the -future, and I will not need Jekyll to serve it. Jekyll is really simple -and most of the things are written in plain html. That means that -everything could be easily reused if I ever choose to change to another -blogging framework (e.g. pelical). But, for the time being, I like the -fact that Github takes care of the compilation as well, so I can simply -modify or add files through the web interface should I need to.
-I hadn't played with HTML and CSS for a while now, so I also wanted to -use this site as a playground. At some point, I realised I was doing -mostly everything in plain HTML and CSS, and decided to keep it like -that for as long as possible. As of this writing, I haven't included any -Javascript code in the page. Probably I will use some to add my -gists and -repositories, but we will see about -that.
-I think the code speaks for itself, so you can check out my repository -on Github. You can -clone and deploy it easily like this:
-1 -2 -3 | git clone
-https://github.com/balkian/balkian.github.com cd balkian.github.com
-jekyll serve -w
- |
I will keep updating this post with information about:
-Avoid HDMI flickering/intermittent blanking on RPI with a 1400x1050 VGA monitor.
-1 -2 -3 -4 -5 | hdmi_drive=2
-hdmi_group=2
-hdmi_mode=42
-disable_overscan=1
-config_hdmi_boost=7
- |
This is a short tutorial on connecting a zigbee device (an Aqara cube) to an MQTT server, so you can control your zigbee devices from the network.
-If you're anything like me, you're probably a sucker for IoT devices. -For a long time, I've been using WiFi-enabled lights, and Amazon …
-Avoid HDMI flickering/intermittent blanking on RPI with a 1400x1050 VGA monitor.
-1 -2 -3 -4 -5 | hdmi_drive=2
-hdmi_group=2
-hdmi_mode=42
-disable_overscan=1
-config_hdmi_boost=7
- |
PPTP VPN connections will fail on a vanilla openwrt installation. -You need to install this module:
-1 | opkg install kmod-nf-nathelper-extra
- |
tqdm is a nice way to add progress bars in the command line or in a jupyter notebook.
- -1 -2 -3 -4 -5 | from tqdm import tqdm
-import time
-
-for i in tqdm(range(100)):
- time.sleep(1)
- |
Add this to your /etc/lightdm/lightdm.conf file:
-1 -2 | [LightDM]
-logind-check-graphical=true
- |
1 | (font-lock-mode)
- |
Today's post is half a quick note, half public shaming. In other words, it is a reminder to be very careful with OAuth tokens and passwords.
-As part of moving to emacs, I starting using the incredibly useful gh.el. -When you first use it, the extension saves either your …
-Zotero is an Open Source tool that lets -you organise your bibliography, syncing it with the cloud. Unlike other -alternatives such as Mendeley, Zotero can -upload the attachments and data to a private cloud via WebDav.
-If you use nginx as your web server, know that even though it provides …
+ +tqdm is a nice way to add progress +bars in the command line or in a jupyter notebook.
+ + +
+
|
+
+
|
This is a quick note on proxying a local python application (e.g. flask) + +
This is a quick note on proxying a local python application (e.g. flask) to a subdirectory in Apache. This assumes that the file wsgi.py contains a WSGI application with the name application. Hence, wsgi:application.
-1 -2 -3 -4 -5 | <Location /myapp/>
- ProxyPass http://127.0.0 … |
Developing a python module and publishing it on Github is cool, but most -of the times you want others to download and use it easily. That is the -role of PyPi, the python package repository. In this post I show you how -to publish your package in less than 10 …
-
+
|
+
+
|