Notepad++ show line numbers
It’s a little hidden imo, so future-me or for your service – the setting to show the line numbers.
Yeah we all can loop, but can you any or all? Checking if condition matches for at least one element of an iterable (e.g. list, tuple, set) In Python you can write that nicer with the builtin method any(): But who doesn’t like a one-liner (that is understandable): Very similar is the case if you…
As most of the time – there are multiple valid ways of doing it. Keeping the order I prefer easy and readable, if it is not crucial for performance to go another way.Create a new list and add only values to it that are not already included. You can do this with a simple list…
Precondition: Have your lokal MQTT broker and Node-RED installed and setup or access to a remote one. I recently added a http request node querying a weather API to Node-RED. After extracting, the current temperature is then published on the local MQTT and can be used by all devices connected to the broker.In this example…
“I didn’t change anything and it (the SSH console) just kept on freezing”.This sound like something a callcenter agent would hear many times a day. Not that I ever worked shifts in the night and early on weekends and got paid really well posing as some who knows more than the computer screen in front…
Pressing F5 does not refresh your view anymore but rewinds the current media?F11 does not run the selected JUnit test in Eclipse any more but activates Caps Lock? I have a Logitech K850 keyboard and I unintentionally turned on the function key lock (didn’t even know such a thing existed). Try the following: [Fn] +…
After expermienting alot with my MQTT server it was pretty polluted with sustained messages and I wanted to get rid of them. The fastest way I got this reliably to work was by deleting the persistence file while the MQTT server was offline. You could delete all or specific topics with a script, too, but…