30.xhtml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  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 © 2015 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/2015/10-October/30.xhtml" />
  27. <title>glib is messing up the file-sorting order. &lt;https://y.st./en/weblog/2015/10-October/30.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/2015/10-October/30.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/2015/10-October/29.xhtml">&lt;Previous</a>
  60. <a rel="next" href="/en/weblog/2015/10-October/31.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>glib is messing up the file-sorting order.</h1>
  67. <p>Day 00237: Friday, 2015 October 30</p>
  68. </header>
  69. <p>
  70. There is an issue present in the file managers associated with many of the common desktop environments that causes files to be sorted in a bizarre and unintuitive manner.
  71. Instead of sorting files is such a way that every character is treated as just a character, they are sorted instead treating digits as somehow special.
  72. All consecutive digits are treated as a single character and sorted from least to greatest.
  73. This makes it very difficult to find files with names that begin with large strings of digits if the beginning digits are known but the number of digits is not.
  74. This is far worse than the issue of sorting files case-insensitively.
  75. With the help of a <a href="https://forum.xfce.org/viewtopic.php?pid=31785#p31785">forum post</a>, I&apos;ve tracked down the problem.
  76. The problem is glib, which is probably used by most <abbr title="GIMP Toolkit">GTK+</abbr>-based desktops.
  77. This means that I cannot escape the issue by switching to another desktop, as <abbr title="K Desktop Environment">KDE</abbr> is out of the question.
  78. Furthermore, I can&apos;t find any information on disabling this &quot;feature&quot; in glib.
  79. When I get the chance, I need to try out some other window managers and see if I can find one that does not have this annoying issue while still being usable.
  80. </p>
  81. <p>
  82. I tried out a new email client today called Sylpheed.
  83. It seems alright so far, though does have one issue during setup.
  84. Sylpheed handles proxies on a per-mail-account basis, so you cannot set up your proxy before setting up your accounts.
  85. Furthermore, the proxy cannot be set up during the initial setup of a given account.
  86. Instead, an account must be set up to run over clearnet, then edited to run through the proxy instead.
  87. To prevent any data leaks, I set the account up to use <code>//localhost.</code> as the mail server, then fixed it to use the real mail server once the proxy was set.
  88. However, updating the <abbr title="Internet Message Access Protocol">IMAP</abbr> and <abbr title="Simple Mail Transfer Protocol">SMTP</abbr> servers did not seem to actually allow me to access my mail.
  89. Eventually I found the problem, which is that Sylpheed does not update the server&apos;s directory tree upon editing the account or upon restarting the email client.
  90. If you use this method to prevent data leaks over clearnet, you&apos;ll need to tell Sylpheed to refresh the directory tree once the email account settings are in place.
  91. </p>
  92. <p>
  93. In the <abbr title="Cascading Style Sheets">CSS</abbr> course I&apos;m taking, the professor talked about creating <abbr title="Cascading Style Sheets">CSS</abbr> rules that only apply to hyperlinks to websites that use specific <abbr title="Top Level Domain">TLD</abbr>s.
  94. The professor&apos;s method does not function outside the toy website we are working with, but it was an interesting concept none the less.
  95. Specifically, the <abbr title="Cascading Style Sheets">CSS</abbr> selectors she used checked the last few characters of the <code>href</code> attribute to see if they, for example, were &quot;.edu&quot;.
  96. However, this method requires that no hyperlinks specify a file path.
  97. At the very least, the <code>/</code> path should be used, but even if a trailing slash was added to the selector, it would not select hyperlinks that used a different path.
  98. Using a different selector, one could select hyperlinks pointing to <abbr title="Uniform Resource Identifier">URI</abbr>s containing &quot;.edu&quot; (or even &quot;.edu/&quot;), but even that would select hyperlinks pointing to <abbr title="Uniform Resource Identifier">URI</abbr>s containing this text anywhere in their path, not just those that actually use the &quot;edu.&quot; <abbr title="Top Level Domain">TLD</abbr>.
  99. I&apos;m not sure it is possible to achieve the desired effect without making assumptions that will not always hold true.
  100. Speaking of <abbr title="Cascading Style Sheets">CSS</abbr>, when I have time, I should set my stylesheet to wipe as much of browsers&apos; default style sheets to achieve a more consistent look.
  101. </p>
  102. <p>
  103. I think that I might move my weblog into onion land.
  104. My current setup, along with my job hunt, is putting a rift in online identity.
  105. I don&apos;t want potential employers reading my journal and discriminating against me for its contents, so I&apos;ve had to set up a shallow mask for use only when job hunting.
  106. But if I torify the personal parts, only people that use Tor or know about the Tor-to-Web gateways will see my more private thoughts.
  107. I won&apos;t have to be &quot;{legal name}@clovermail.net&quot;, I can be &quot;{legal name}@{my domain}&quot;.
  108. This applies to more than just email though.
  109. I plan to get more into software development on my own time, which will of course be released under my real name, not my legal name, using accounts that are tied to my clearnet website.
  110. With my weblog hosted there, I would have no choice but to hide everything I am behind that shallow mask.
  111. By moving the personal part of my website to onion land, I insure that most of the people that see it will either be like-minded or technically savvy.
  112. I will no longer be as much of a blatant target for the nosy.
  113. When I do this, I&apos;ll use <abbr title="Cascading Style Sheets">CSS</abbr> to hide links to the onion address, then link to a style sheet on the onion that will reveal them.
  114. It&apos;s not the perfect solution, but it should be pretty decent.
  115. </p>
  116. <p>
  117. This entry will probably be the last to go live before I set up the onion website and move the weblog to it.
  118. That means I&apos;m going to have to go dark for a bit, as I do not even have a server machine available right now.
  119. I&apos;ll spend that time preparing the style sheets and rewriting the links of this website to begin in &quot;//y.st/&quot; or &quot;//quystystxtvdgyst.onion/&quot;, depending on the link.
  120. I&apos;ll probably continue to update my canary daily and will definitely write weblog entries in the mean time to make available when the onion comes back up.
  121. </p>
  122. <p>
  123. My <a href="/a/canary.txt">canary</a> still sings the tune of freedom and transparency.
  124. </p>
  125. <hr/>
  126. <p>
  127. Copyright © 2015 Alex Yst;
  128. 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>.
  129. If for some reason you would prefer to modify and/or distribute this document under other free copyleft terms, please ask me via email.
  130. My address is in the source comments near the top of this document.
  131. This license also applies to embedded content such as images.
  132. For more information on that, see <a href="/en/a/licensing.xhtml">licensing</a>.
  133. </p>
  134. <p>
  135. <abbr title="World Wide Web Consortium">W3C</abbr> standards are important.
  136. This document conforms to the <a href="https://validator.w3.org./nu/?doc=https%3A%2F%2Fy.st.%2Fen%2Fweblog%2F2015%2F10-October%2F30.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%2F2015%2F10-October%2F30.xhtml"><abbr title="Cascading Style Sheets">CSS</abbr>3</a> specification.
  137. </p>
  138. </body>
  139. </html>