Note to self: my mate Mitchell from Battery World, Penrith hooked me up with new batteries for my PowerShield Defender 1200VA systems: ‘LOVE UPS’ and ‘ORAC UPS’. The batteries have a 12 month warranty if there turns out to be problems.
RisingLight
RisingLight is an OLAP database system for educational purposes: RisingLight. If I had more time I would check this out.
Arrays in PHP
Some notes about arrays in PHP over here: PHP: Frankenstein arrays. I was already aware of most of that but I thought the notes at the bottom about supporting JSON were handy:
If you want to enforce an array to encode to a JSON list (all array keys will be discarded), use:
json_encode(array_values($array));
And if you want to enforce an array to encode to a JSON object, use:
json_encode((object)$array);
Also array_is_list is available as of PHP 8.1.
Marking caches on my workstation
I added a CACHEDIR.TAG file to the following directories on my workstation:
- ~/.cache
- ~/.local/share/akonadi
- ~/.local/share/baloo
Mysticism and Morality
From 1.4.9. – Mysticism and Morality – Pt. 1:
Now, you see, I’m not talking about a philosophy, I’m not talking about a rationalization, some sort of theory that somebody cooked up in order to explain the world and make it seem a tolerable place to live in. I’m talking about a rather whimsical, unpredictable experience that suddenly hits people, and it includes this element of feeling the total harmoniousness of everything.
A REXX XML PARSER
This is fun: A REXX XML PARSER.
Big universe
Stumbled upon this homage to the old powers of ten video from the 70s: Our Universe is SO big, it’s mindblowing! 🤯 BBC.
drop_caches
If the ZFS ARC goes nuts with e.g. lots of arc_prune processes, try this:
# echo 3 > /proc/sys/vm/drop_caches
Thanks to Xe on #lobsters.
How to check which process is causing IO wait
The ‘wa’ state in `top` can indicate an IO wait, but to figure out what’s causing the IO wait try this command:
# ps aux | awk '$8 ~ /D/ { print $0 }' | less
You can read more here. Thanks to bsandro on #lobsters.
According to `man top`:
The status of the task can be one of: D = uninterruptible sleep I = idle R = running S = sleeping T = stopped by job control signal t = stopped by debugger during trace Z = zombie
ping!
Note to self: if you hear a computer go ‘ping’ and you’re not sure where it’s coming from, check the VMs on your Mac. End note.