Sunday, July 11, 2021
Friday, January 22, 2021
I had a situation recently where I could not write the $_POST array to a file. During debug, I learned that the $_POST data was being saved to a variable correctly, and I could output that variable to the screen, send it back as my HTTP response payload, and even write literally anything else to the file. But the $_POST array simply would not write to a local file.
I did all my Linuxey t-shooting: checked selinux, checked PHP permissions, checked out-of-band things like inodes and disk space, but no go.
So I changed my method to this, which worked. No clue why. Your milage may vary...
file_put_contents(, file_get_contents( ));
Friday, November 20, 2020
Wednesday, November 18, 2020
Working remotely is one thing - I have done that exclusively since 2016. But that does not mean that I've done everything remotely. For example, I have always gone onsite to bring up new equipment and therefore I've spent very little time building our remote deployment capabilities. Now, like everyone else, I can't travel so the time has come to spend some cycles on that.
One of the things that always causes problems onsite is that transit provider ports are either configured wrong on the transit provider's side, or the cables are connected to the wrong patch panel or switch ports. I can't do much about incorrect transit provider configs, but I can hedge my bets against the wrong cable/port issue. We use Arista switches, and Arista EOS supports multiple "secondary" IP address allocation for each interface. I know the IPs we've been assigned from our transit providers and usually we assign one per optical port. But this time. I am assigning all our IPs to the only optical port I can configure in my home office/lab. My reasoning is that while it is likely the cables are not connected to the correct switch ports, it is also unlikely that none of the cables are connected to the first optical port on the switch.
This type of thing:
ip address 188.8.131.52.1/30
ip address 184.108.40.206/30 secondary
ip address 220.127.116.11/30 secondary
ipv6 address 1:1:1:1:1/126
ip access-group uplink-in in
ipv6 access-group uplink-in6 in
Tuesday, November 17, 2020
Friday, November 6, 2020
Tuesday, November 3, 2020
"Big Ag is a particularly odious repair troll, and John Deere is its standard-bearer. The company has been trying to felonize farmers...
I had a situation recently where I could not write the $_POST array to a file. During debug, I learned that the $_POST data was being saved ...
I've been interested in switching to the Dvorak keyboard layout for some time. Today, I was looking through my phone's keyboard set...
I'm reading the book "Soonish" which is an explanation why we don't have all the neat future stuff we were supposed to hav...