Have you ever wondered what is the fastest way to get Array with unique items?
Torrents on low memory device (Pine64)
I've got Pine64 Single Board Computer (the first generation) and it has not so low memory, compared to Raspberry Pi, mine has 2GB. But still, when having there Prometheus.io, Nextcloud and rTorrent (with ruTorrent for web interface), plus samba share, it suddenly isn't that much, those 2GB of memory.
Vue, Observables and large data sets
This is short example about Observables and how they can be really evil. Fortunately we have a hero called Object.freeze(obj).
Web Workers to the rescue
TLDR; Think about when Web Workers make sense and when not. It's tempting to run something on the background, but not always. This is the story of what I did wrong.
How assembled Prusa i3 MK2
Power meter graphs with prometheus.io and nodemMCU
I want to track and graph everything, which includes power consumption in my flat. But checking and regularly values and writing them down in spreadsheet is tiresome. Then I found this guide and after some modifications I've managed to collect actual power consumption, send it to Prometheus and see graphs in Grafana.
How to autodownload subtitles SMPlayer with mpv
Control LIFX with NodeMCU and range sensor
LIFX bulbs are great, but when you just need to turn them on, off or just change brightness, it can be not very comfortable, to do this simple task by app. So I decided to create much simpler way to do this. And then I came across NodeMCU, small development board similar to Arduino with integrated Wi-Fi, with cost of about $5.
Lifx - smart RGB bulbs
Project LIFX: The Light Bulb Reinvented has collected in november 2012 more than $1.3 million (goal set to 100 thousand). It's goal was to manufacture RGB-W LED bulbs LIFX, which you can control via WiFi. Author promised, they'll be ready in march 2013, but path to the final product was more difficult than expected. My 4 bulbs arrived in february 2014, so I've had to wait 15 months, but it was worth it.
Remove jQuery timestamp from json requests to hit Drupal cache
Problem: When ajax request has cache off it always creates request with timestamp e.g. _=1456134256000
, and as it is get parameter, views are called and Drupal cache is not hit. And when cache is on, request is made without timestamp, and browser returns data from it's cache, so it doesn't hit server. What I needed is that script gets past browser cache, but hits Drupal cache.