Redis with Python

Redis is a simple but powerful message broker that You can use as a communication medium for a distributed micro-service environment with multiple replicas. In this tutorial, we will use its “key value” and “task queue” features to store and access data. Redis server Install and execute Docker Desktop. Use the following command to start a single Redis 7 instance within a Docker container and make it listen to port 9999 on localhost....

November 3, 2022 · 2 min · Quisl

Host a blog on Azure Storage

Here is an idea on how to host a blog or any other static website for very cheap on Azure Blob Storage. The price will vary with traffic and storage of course… At the moment its € 0.0208 for one GB/Month for storage and € 0.0063 for 10.000 read operations. So you can’t get much cheaper than this (excluding free webspace that always has a catch like ads or expiry dates)....

October 19, 2022 · 2 min · Quisl

Python find list entries in other list

Here is a neat one-liner in Python 3 to quickly check if entries from one Python list are available in another Python list. This can also be used to apply other functions. Code list1 = ["a","b","c","d"] list2 = ["b","c","d"] list3 = ["a","x","z"] # Check if all entries of list2 are in list1 print(all(value in list1 for value in list2)) # Check if all entries of list3 are in list1 print(all(value in list1 for value in list3)) True False Explanation all(x) is a built-in function that returns True if all entries in the Python list x are True....

October 15, 2022 · 2 min · Quisl

Stream Deck + Philips Hue error: 'Unable to Discover Bridges'

There is a bug in the current Philips Hue: Lights addon (version 1.4) for Stream Deck by Elgato which occurs occasionally after starting the Stream Deck. When trying to connect your Stream Deck to the Philips Hue Bridge, it says ‘Unable to discover bridges’ after a few miliseconds. It seems like its not even trying to connect. Workaround get the IP address of your Philips Hue Bridge manually - I got mine from my router download the Stream Deck Philips Hue Plugin version 1....

October 14, 2022 · 2 min · Quisl