Things I have learned - Part 5

Short and sweet today:

There is always a point of failure, between your redundant, non-single-point-of-failure components

Why Perl programs should always 'use strict'

Yes, every Perl programmer knows that you should 'use strict', but sometimes it's just easier not to. BUT YOU SHOULD ALWAYS DO IT ANYWAY. I just spent an hour debugging a bit of existing code where I added a bit of fork/waitpid code (copy/pasted from elsewhere) to implement concurrent child processing. And because 'use strict' wasn't on in (not my fault, the original code isn't mine), and I didn't add use POSIX ":sys_wait_h"; at the start, the WNOHANG constant wasn't defined. So perl just said "ok, I'll make that 0".

Things I have learned - Part 4

Following on from part 2 of this series, is the requirement that e-mail must leave the system it's generated on, unless it's going to a mailbox on the local system which is actively monitored (weekly minimum, preferably every week-day or maybe even several times a day). Typically that place will only be on your actual mail server. In general, system mail must go to a real IMAP/POP/Exchange/LotusNotes/Whatever mailbox server (MDA), where someone' mail client will present it to them.

Things I have learned - Part 3

Quick entry today:

You can still use sudo when already root, so if for example you have to be root to trawl around in restricted directories in ways you can't with efficiently do with "sudo ls", you can and should still use "sudo " for actual operations, as it leaves a log trail for later (and can be traced to you by the original sudo on that terminal).

Pages

Subscribe to stroppykitten.com RSS