20.xhtml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. h t t :: / / t /
  4. h t t :: // // t //
  5. h ttttt ttttt ppppp sssss // // y y sssss ttttt //
  6. hhhh t t p p s // // y y s t //
  7. h hh t t ppppp sssss // // yyyyy sssss t //
  8. h h t t p s :: / / y .. s t .. /
  9. h h t t p sssss :: / / yyyyy .. sssss t .. /
  10. <https://y.st./>
  11. Copyright © 2016 Alex Yst <mailto:copyright@y.st>
  12. This program is free software: you can redistribute it and/or modify
  13. it under the terms of the GNU General Public License as published by
  14. the Free Software Foundation, either version 3 of the License, or
  15. (at your option) any later version.
  16. This program is distributed in the hope that it will be useful,
  17. but WITHOUT ANY WARRANTY; without even the implied warranty of
  18. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  19. GNU General Public License for more details.
  20. You should have received a copy of the GNU General Public License
  21. along with this program. If not, see <https://www.gnu.org./licenses/>.
  22. -->
  23. <!DOCTYPE html>
  24. <html xmlns="http://www.w3.org/1999/xhtml">
  25. <head>
  26. <base href="https://y.st./en/weblog/2016/01-January/20.xhtml" />
  27. <title>The \gnupg class &lt;https://y.st./en/weblog/2016/01-January/20.xhtml&gt;</title>
  28. <link rel="icon" type="image/png" href="/link/CC_BY-SA_4.0/y.st./icon.png" />
  29. <link rel="stylesheet" type="text/css" href="/link/basic.css" />
  30. <link rel="stylesheet" type="text/css" href="/link/site-specific.css" />
  31. <script type="text/javascript" src="/script/javascript.js" />
  32. <meta name="viewport" content="width=device-width" />
  33. </head>
  34. <body>
  35. <nav>
  36. <p>
  37. <a href="/en/">Home</a> |
  38. <a href="/en/a/about.xhtml">About</a> |
  39. <a href="/en/a/contact.xhtml">Contact</a> |
  40. <a href="/a/canary.txt">Canary</a> |
  41. <a href="/en/URI_research/"><abbr title="Uniform Resource Identifier">URI</abbr> research</a> |
  42. <a href="/en/opinion/">Opinions</a> |
  43. <a href="/en/coursework/">Coursework</a> |
  44. <a href="/en/law/">Law</a> |
  45. <a href="/en/a/links.xhtml">Links</a> |
  46. <a href="/en/weblog/2016/01-January/20.xhtml.asc">{this page}.asc</a>
  47. </p>
  48. <hr/>
  49. <p>
  50. Weblog index:
  51. <a href="/en/weblog/"><abbr title="American Standard Code for Information Interchange">ASCII</abbr> calendars</a> |
  52. <a href="/en/weblog/index_ol_ascending.xhtml">Ascending list</a> |
  53. <a href="/en/weblog/index_ol_descending.xhtml">Descending list</a>
  54. </p>
  55. <hr/>
  56. <p>
  57. Jump to entry:
  58. <a href="/en/weblog/2015/03-March/07.xhtml">&lt;&lt;First</a>
  59. <a rel="prev" href="/en/weblog/2016/01-January/19.xhtml">&lt;Previous</a>
  60. <a rel="next" href="/en/weblog/2016/01-January/21.xhtml">Next&gt;</a>
  61. <a href="/en/weblog/latest.xhtml">Latest&gt;&gt;</a>
  62. </p>
  63. <hr/>
  64. </nav>
  65. <header>
  66. <h1>The <code>\gnupg</code> class</h1>
  67. <p>Day 00319: Wednesday, 2016 January 20</p>
  68. </header>
  69. <p>
  70. My old school got back to me, so now I can get into my old account.
  71. I went through my account to update my email address and remove the telephone number from the account, however, it seems that they do not even allow one to update one&apos;s telephone number.
  72. I had forgotten about that.
  73. Back when I attended that school, I had changed my telephone number partway through, but I had been unable to update my telephone number on the account.
  74. Their system is pretty stupid, really.
  75. I had also forgotten how slow their website is.
  76. It majorly slows down the whole Web browser.
  77. In any case, I will walk into the local community college tomorrow, fill out their paperwork, and pay their fee.
  78. Once home from there, I will pay my old school to send the community college a copy of my transcript.
  79. </p>
  80. <p>
  81. It seems that <a href="https://marcwithac.bandcamp.com/">Marc With a C</a> is having troubles with PayPal lately.
  82. I am not the only one that PayPal torments! For Marc though, PayPal is <a href="https://twitter.com/MarcFi/status/689644415414091776">charging strange amounts for shipping</a> if his customers order on a mobile device.
  83. Apparently, <a href="https://twitter.com/MarcFi/status/689719620937334784">PayPal is charging some mobile users $20 <abbr title="United States Dollars">USD</abbr> for shipping</a>.
  84. PayPal is horrid.
  85. I really hope that Bandcamp starts offering a non-PayPal method of payment.
  86. If and when they add a second payment option, I will hopefully be able to quit using PayPal&apos;s services forever.
  87. </p>
  88. <p>
  89. I had a chat with a representative of my carrier about getting my carrier-provided device unlocked today.
  90. I do not typically use that device, as it is too locked down for daily use, but it is useful for experimentation.
  91. The carrier refused to unlock the device, stating that I needed to wait one more month.
  92. In all honestly, I was in fact trying to get it unlocked a month early.
  93. With some carefully-chosen words though, I managed to get the representative to agree to unlock my device a single day early.
  94. She said that she made a note of that on my account, so if I contact support a day early, I can get it unlocked.
  95. </p>
  96. <p>
  97. I looked into what is necessary to implement Sitemap support in my spider.
  98. As it turns out, not a whole lot is needed.
  99. The <a href="http://www.sitemaps.org/protocol.html">Sitemap protocol</a> defines two types of <abbr title="Extensible Markup Language">XML</abbr> files, Sitemaps and Sitemap indexes.
  100. Both of these use <code>&lt;loc/&gt;</code> tags to tell a crawler about other files on the website.
  101. All I had to do was copy the code that handles <code>&lt;a/&gt;</code> tags and modify it slightly to use <code>&lt;loc/&gt;</code> tags instead.
  102. My implementation causes the spider to look for both <code>&lt;a/&gt;</code> tags and <code>&lt;loc/&gt;</code> tags on both webpages and Sitemaps alike, but that should be fine.
  103. In theory, Sitemaps do not contain <code>&lt;a/&gt;</code> tags and webpages do not contain <code>&lt;loc/&gt;</code> tags.
  104. In practice, most Web developers fail to adhere to standards, but I am building the spider to accept whatever input that it is able to understand.
  105. As much as I value standards, I am not going to try to penalize sites for not adhering to them.
  106. </p>
  107. <p>
  108. I finished processing my email.
  109. I need to stop allowing myself to fall behind.
  110. </p>
  111. <p>
  112. Cyrus told our mother that he is giving up on his Boy Scout project.
  113. This really set her off.
  114. She told Cyrus off for quite a while.
  115. She said that Cyrus aught to go live with our father, but was also pressuring him to cut all ties with our father.
  116. She says that she is not kicking him out, though he thought that she was at first.
  117. Partway through telling off Cyrus, she offered to allow me to go to Portland with Alyssa for a bit, but given the context, it feels like a trap to me.
  118. Just before, she was claiming that we do not care about her.
  119. I need to tread carefully.
  120. Most likely, the &quot;correct&quot; option is to not go.
  121. </p>
  122. <p>
  123. I set up the wrapper class for the <a href="https://secure.php.net/manual/en/ref.gnupg.php">gnupg_*() functions</a>, as I actually do use those function.
  124. I must say though that it is nice not having to build wrapper classes that I do not use though.
  125. However, after building this class, <abbr title="PHP: Hypertext Preprocessor">PHP</abbr> started claiming that the <a href="https://secure.php.net/manual/en/function.gnupg-init.php"><code>\gnupg_init()</code> function</a> does not exist.
  126. Strangely enough, whenever my class is defined, the function does not seem to exist, but whenever my class does not exist, the function does.
  127. Trying several things, I eventually moved my class into the root namespace for more testing, and I found that I could not &quot;redeclare&quot; the <code>\gnupg</code> class.
  128. It turns out that the <abbr title="GNU&apos;s Not Unix">GNU</abbr> Privacy Guard extension defines its own undocumented class! This still does not explain the errors about the function &quot;not existing&quot;, but I deleted my class and now everything works as expected.
  129. I started to post a note in the <abbr title="PHP: Hypertext Preprocessor">PHP</abbr> documentation, but after reading the page that they ask all users to read before posting, I found that they prefer that such things not be posted as notes.
  130. Instead, they want bug reports filed, so I filed a <a href="https://bugs.php.net/bug.php?id=71424">bug report</a> instead.
  131. </p>
  132. <p>
  133. Our cat has been a bit sluggish lately, and we can tell that she is not feeling well.
  134. We had assumed that she is simply a bit sick and will recover, but my mother has proposed another theory: perhaps she is dying.
  135. She has gotten old, and she might not have much time left.
  136. Even if she is not quite at death&apos;s door, older cats start to lose their energy and become more sedentary.
  137. According to Wikipedia, <a href="https://en.wikipedia.org/wiki/Cat#Health">cats tend to live about twelve to fifteen years</a>, and she is twelve years old.
  138. Another possibility is that she is in fact just sick, but that she picked up the disease because we visited that cat shelter and brought something home.
  139. We all tried to wash up thoroughly, before going anywhere near her, but one of us may not have washed up as well as we should have.
  140. As odd as it is to say, I think that I will be fine if the cat passes away.
  141. I know that everything dies, and unlike most people, I feel that when something dies, everything that they once were is gone.
  142. I do not mean this in just a souls-are-a-myth way, but also that it does not matter how long you live if you still have to die.
  143. Death, to me, causes life to have no value.
  144. I do want the cat to continue living and get better because I like her and like having her around, but more than that, I want her to get continue living and get better because I think that the other members of the family will have less guilt on their minds that way.
  145. There will be less chance of them thinking that perhaps they killed the cat and that things would be different if they had only made sure to clean themselves more thoroughly.
  146. I suppose that makes me a bit cold, but I do not know any other way to feel; death is unavoidable.
  147. </p>
  148. <p>
  149. My <a href="/a/canary.txt">canary</a> still sings the tune of freedom and transparency.
  150. </p>
  151. <hr/>
  152. <p>
  153. Copyright © 2016 Alex Yst;
  154. You may modify and/or redistribute this document under the terms of the <a rel="license" href="/license/gpl-3.0-standalone.xhtml"><abbr title="GNU&apos;s Not Unix">GNU</abbr> <abbr title="General Public License version Three or later">GPLv3+</abbr></a>.
  155. If for some reason you would prefer to modify and/or distribute this document under other free copyleft terms, please ask me via email.
  156. My address is in the source comments near the top of this document.
  157. This license also applies to embedded content such as images.
  158. For more information on that, see <a href="/en/a/licensing.xhtml">licensing</a>.
  159. </p>
  160. <p>
  161. <abbr title="World Wide Web Consortium">W3C</abbr> standards are important.
  162. This document conforms to the <a href="https://validator.w3.org./nu/?doc=https%3A%2F%2Fy.st.%2Fen%2Fweblog%2F2016%2F01-January%2F20.xhtml"><abbr title="Extensible Hypertext Markup Language">XHTML</abbr> 5.1</a> specification and uses style sheets that conform to the <a href="http://jigsaw.w3.org./css-validator/validator?uri=https%3A%2F%2Fy.st.%2Fen%2Fweblog%2F2016%2F01-January%2F20.xhtml"><abbr title="Cascading Style Sheets">CSS</abbr>3</a> specification.
  163. </p>
  164. </body>
  165. </html>