123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103 |
- <?php
- /**
- * <https://y.st./>
- * Copyright © 2016 Alex Yst <mailto:copyright@y.st>
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <https://www.gnu.org./licenses/>.
- **/
- $xhtml = array(
- 'title' => "Strange $a[DNS] server and $a[IRC] server issues",
- 'body' => <<<END
- <p>
- When I awoke today, I found that the power had gone out and come back up.
- It took my $a[Tor] relay down with it, and for some reason, $a[Tor] didn't come back up when the machine did.
- Looking into the issue, <code>irc.freenode.net</code> wasn't resolving, so $a[Tor] was claiming that the domain couldn't be parsed.
- Again, this had noting to do with parsing and everything to do with resolution.
- It'd be nice if there was some sort of way to tell $a[Tor] to ignore certain addresses if they can't resolve instead of refusing to start at all, but even if that feature isn't added, $a[Tor] should be fixed to give an appropriate error message.
- In any case, my instance of <a href="apt:bind9">Bind9</a> was somehow failing to resolve <code>irc.freenode.net</code>.
- I have no idea what the problem was.
- The failed resolution message was distinct from a missing record response.
- While requests for <code>ircs.freenode.net</code> resulted in an NXDOMAIN response, requests for <code>irc.freenode.net</code> instead mentioned something about truncation.
- The problem hadn't resolved itself by the time that I went to bed, so I tried restarting Bind9.
- That fixed the issue right away.
- It's odd that that solution would have worked though.
- After all, I didn't notice the problem until right after the server had restarted, meaning that Bind9 had <strong>*just*</strong> restarted.
- If that didn't fix it, why did a second restart work? Speaking of unexplainable issues, the server losing power also took down $a[ngIRCd].
- $a[ngIRCd] didn't come back up with the server as it was supposed to, so I assumed that there was some sort of configuration issue.
- Most likely, I had modified the configuration and forgotten to restart the software, so I didn't notice that the new configuration was bad until the whole machine restarted.
- However, that wasn't the case at all.
- Without making any configuration changes, simply telling the machine to start $a[ngIRCd] back up worked.
- I'm at a loss as to why it didn't bring $a[ngIRCd] back up of its own accord.
- </p>
- <p>
- Yesterday, I forgot to set up the parts on my known_scheme class that enforce the presence or lack of presence of $a[URI] components based on whether a given scheme requires or disallows said components, so I set that up today.
- While dealing with that, I found that phpDocumentor is unable to parse files that reference values within a constant array.
- It's totally fine with such arrays being defined, but it acts up if you try to actually make use of the defined arrays.
- I ended up separating the class constant arrays into five separate class constants, which is probably a better design anyway.
- Constant arrays are most useful outside of classes, where there's nothing else to bind the values together.
- I also set up an exception code registry to make sure that I only use each exception code in one place.
- Using unique exception codes doesn't hurt and it could be useful for debugging.
- As sort of a way to document why <a href="https://git.vola7ileiax4ueow.onion/y.st./include.d">include.d</a> doesn't define an autoloading function, I added an implementation of <a href="https://secure.php.net./manual/en/function.autoload.php"><code>\\__autoload()</code></a> that checks for things that would prevent the <a href="https://secure.php.net./manual/en/function.spl-autoload.php"><code>\\spl_autoload()</code></a> from loading classes from include.d, fixes them, then makes sure that <code>\\spl_autoload()</code> has been registered as an autoload function.
- It additionally calls <code>\\spl_autoload()</code> or <a href="https://secure.php.net./manual/en/function.spl-autoload-call.php"><code>\\spl_autoload_call()</code></a> if necessary.
- Using default settings, aside from a modified path that includes include.d, calling <a href="https://secure.php.net./manual/en/function.spl-autoload-register.php"><code>\\spl_autoload_register()</code></a> with no arguments is all that's necessary for setting up the default autoloader to load classes from include.d.
- I thought that I could finish with the <code>gopher:</code>-scheme $a[URI] class today as well, but I ended up entirely scrapping the previous work that I'd done on that class from when I first started building scheme-specific $a[URI] classes.
- I might end up scrapping my <code>https:</code>- and <code>http:</code>-scheme classes as well.
- I've made major improvements to the parent classes, and the child classes might not be salvageable.
- </p>
- <p>
- While continuing with the job hunt today, I found a couple of oddities.
- First, the theater was closed, so I couldn't drop off that particular application.
- Why would they be closed during normal business hours? Even stranger though, I found that for a dog grooming position listed online, a year of dog grooming was required.
- However, for a position involving care of people, experience is only preferred, not required.
- So ...
- people are pickier about who grooms their dogs than who takes care of the elderly or otherwise incapacitated? If I were in need of care, I'd find that a bit insulting.
- I wouldn't be demanding people with experience or anything, but it seems like the dogs are being given priority.
- </p>
- <p>
- My mother asked about when my dental appointment was, which I was really hoping that she wouldn't do.
- I had to admit that while I had tried to get an earlier appointment, it wasn't a possibility and my appointment was on May 23 as I had originally told her.
- She said that I shouldn't lie to the dentists and tell them that I'm not in major pain.
- She said that it doesn't accomplish anything for me to try to tough out the pain.
- Okay, it seems that she doesn't actually thing that I killed my tooth after all, as she thinks that it's in excruciating pain.
- I'm a bit less frustrated with her now though.
- She hadn't been trying to get me to recklessly lie to the dentists in an attempt to rush my care.
- Instead, she was just failing to listen, as always, and didn't realize that when I said that I'm not in major pain, that it meant that I'm not in major pain.
- In fact, unless I bump that spot on my face hard enough or I get something in the hole in my tooth, I can barely feel that there's a problem.
- It certainly isn't painful most of the time.
- I explained that to her, and she finds it strange that a hole that big doesn't hurt more, but she dropped the subject.
- When she drops things, she often doesn't drop them for long though, so I may not have heard the end of this.
- </p>
- <p>
- My mother says that she's taking a $a[CPR] class soon, and offered to take me with her.
- I'm reluctant to go into such a public setting with her, but I agreed to go.
- While the chances of knowing $a[CPR] coming in handy are exceedingly small, the possibility of potentially saving even one life would be worth it.
- While the knowledge will be valuable, I'm less interested in the certification that the course allegedly offers if it requires use of my legal name.
- Because my mother is a pain about me using my real name instead of my legal name, I think that my best bet is to leave my state-issued $a[ID] at home.
- Hopefully, it won't be needed, but if it is, leaving it behind prevents my legal identity from being tied to it.
- I'm kind of hoping that the certifications don't come with names though.
- However, to be honest, the chances of that don't look good.
- The certificates that I see online do have a name field.
- This training will likely be this Sunday, but we don't have the exact date right now.
- </p>
- <p>
- I received a letter from Brad of <a href="http://www.bradsucks.net./">Brad Sucks</a>.
- Apparently, it's been about a year and a half since he's sent anything to people on his mailing list.
- In fact, I had forgotten that I was even on the guy's mailing list because he never sends anything.
- This is a guy that won't fill your inbox! Anyway, it seems that he's quit his non-music jobs and is focusing only on music now.
- It sounds like he's been hard at work on his next album, so that might be coming out at some point in the near future.
- </p>
- END
- );
|