Category Archives: Uncategorised

ESP01S: Testing Rig

My goal is to migrate my current Arduino IoT platform code into the ESP01S chipset (8266). What I really want is to achieve a rock-solid ish uptime so I do not need to worry that it will just crash and be in that state for days before I realise that it went south.
Read more

ESP01S: Teething pain…

Recently I have picked up few ESP01s boards as an addition to my IoT Platform arsenal (Arduino is kinda nailed 101% at the moment). However regardless what I did (and I did read quite a few tutorials) that thing did not want to output any meaningful serial information nor it was going to connect to a wifi network...
Read more

Compression idea thingy

Super basics of the Huffman compression algorithm (do more research if this sparks your interest). Lets say that we have a string of characters: 012102 Now lets do a simple mapping of characters to bits, 0 = 0
1 = 10
2 = 11 So the above string would end up looking like this in binary: 0101110011 Once we got that lets have a quick think about how many bits it takes to represent our string: 10 (bits) / 6 (characters) = 1.666 bits per character.
Read more

WordPress Basic Security Tips

Since my WordPress site has been compromised few months back I have been advised to take certain steps in order for this not to happen again so that I can just enjoy a working site without any interruptions. Here are few tools that have helped me to keep my site healthy and happy: 1) WordFence:
Super useful plugin that allows you to scan your website for vulnerabilities.
Read more

CSR: 2nd Update

Since there are so many ways a HA system can go south I have decided to follow my made up rules to make "the contraption" good enough (crude is in the name right?):

- Node1 is always the master to begin with,
- Node1 is the only one running the replication script (status 0 if all is ok with the node),
- The replication script stops running when keepalived encounters problems (status 1),
- After any failure / failover the user is required to put everything back to the original state,
- Keepalived on Node2 does not start automatically after a reboot, Here are just few case scenarios that Crude SQLite Replicator can handle.
Read more