Over here it says that for ZFS deduplication you need roughly 5GB RAM per TB disk. Good to know. Also over here are instructions for ZFS root with Ubuntu. Also good to know!
Checking ashift on existing pools
Today I found: Checking ashift on existing pools. In summary:
# zpool get all | grep ashift # zpool get all | less # zdb -C | grep ashift # zdb -C | less # zdb -U /etc/zfs/zpool.cache | less
Per ZFS 101—Understanding ZFS storage and performance you *really* want to make sure your ashift value is aligned with your disk’s sector size. ashift=9 for 512; ashift=12 for 4096; I’ve heard some SSDs can be 8K, but I haven’t been able to confirm for my own disks.
Controlling RGB LEDs With Only the Powerlines: Anatomy of a Christmas Light String
This on Hacker News today: Controlling RGB LEDs With Only the Powerlines: Anatomy of a Christmas Light String.
How FreeDOS Grew Up and Became a Modern DOS
An article about the history of FreeDOS: How FreeDOS Grew Up and Became a Modern DOS.
Computer Science courses with video lectures
This is pretty awesome: Computer Science courses with video lectures.
300in1 diodes
I made some notes about my 300in1 diodes. I have switching diodes, rectifier diodes, zener diodes, and germanium diodes. One thing to note is that germanium diodes are supposed to have a forward voltage of 300mV. One diode I thought was a germanium diode (it was clear with two black bands but no other markings) had a forward voltage of 600mV, I’m not sure what’s up with that, so I put it in my “unknown parts” drawer.
Doom 3 locker codes
These are pretty good Doom 3 locker codes.
UPS batteries from Battery World
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.