{"id":41653,"date":"2018-01-30T06:00:01","date_gmt":"2018-01-30T11:00:01","guid":{"rendered":"http:\/\/s720653790.onlinehome.us\/twentysidedtale\/?p=41653"},"modified":"2018-01-30T06:14:24","modified_gmt":"2018-01-30T11:14:24","slug":"whats-new","status":"publish","type":"post","link":"https:\/\/www.shamusyoung.com\/twentysidedtale\/?p=41653","title":{"rendered":"What&#8217;s New?"},"content":{"rendered":"<p>Besides sulking, ranting, and pacing restlessly while <a href=\"?p=41629\">my site was down<\/a>, I spent the last several days updating bits of the site that have been neglected for ages. Most of this is probably only interesting or useful for new readers, but just in case you&#8217;re curious what I did: <\/p>\n<p>There&#8217;s a <a href=\"http:\/\/www.shamusyoung.com\">new front page<\/a>. Yeah. When was the last time anyone looked at that thing? I don&#8217;t even know. <\/p>\n<p>Also, I updated the favicon for the site. I liked the old one because it was a blue die, but it looked terrible when mashed down to 16&#215;16, which seems to be the norm these days. The new one isn&#8217;t as cool, but it&#8217;s more visually clear.<\/p>\n<p>I&#8217;ve revamped <a href=\"\/shocked\/\">the System Shock novel<\/a>. Some PHP updates broke it ages ago, but now it should work as intended. Also I got rid of the archaic IFRAME-based design.<\/p>\n<p>Heads up, you&#8217;re not at the end of the post. The next thing after the jump is an image of the thing we usually see below a post, which makes this feel like the end. But keep scrolling.<\/p>\n<p><!--more--><\/p>\n<h3>The Promo Display<\/h3>\n<p><div class='imagefull'><img src='https:\/\/www.shamusyoung.com\/twentysidedtale\/images\/site_promo.jpg' width=100% alt='I tried to darken this a bit and put a black border around it so I&apos;d stop thinking the post got cut off, but it still looks like the bottom of the post to me.' title='I tried to darken this a bit and put a black border around it so I&apos;d stop thinking the post got cut off, but it still looks like the bottom of the post to me.'\/><\/div><div class='mouseover-alt'>I tried to darken this a bit and put a black border around it so I'd stop thinking the post got cut off, but it still looks like the bottom of the post to me.<\/div><\/p>\n<p>Promo is what I call the little boxes that suggest other content when you get to the end of a post. If you&#8217;re a regular then I&#8217;m sure you&#8217;ve long since been desensitized to it by now and your eyes automatically skip over it. You&#8217;ve probably seen every possible promo box dozens of times now and you&#8217;ve long since learned that there&#8217;s nothing for you there. That&#8217;s fine. The promo is mostly designed for newcomers.<\/p>\n<p>See, one thing I noticed from reading clickbait-ish sites is that these sorts of suggestions can be really powerful. You get to the end of some content, and see more content. And when you&#8217;re done with that, you&#8217;re offered more. Out of the handful of articles on offer, one is bound to capture your curiosity. The problem with clickbait sites is that you eventually learn it&#8217;s all empty promises. Looking for interesting content on these sites is like panning for gold in your bathtub. The headlines might tantalize you with an intriguing question, but then when you see the articles it&#8217;s a giant unrelated image and two paragraphs of fluff that don&#8217;t really answer the question, surrounded by two dozen advertisements.<\/p>\n<p>But the promo thing is my attempt to make a similar system, except designed to be fulfilling. I have no way of knowing how well it works because I don&#8217;t have any fancy site metrics to track that sort of thing. (And I probably wouldn&#8217;t bother to read them if I did.) But I&#8217;m sort of assuming that if it works for me then it might work for other people. I know <a href=\"https:\/\/www.joelonsoftware.com\/\">Joel Spolsky<\/a> had a text-based version of this on his blog, and that&#8217;s how I found a lot of <a href=\"https:\/\/www.joelonsoftware.com\/2005\/05\/11\/making-wrong-code-look-wrong\/\">his best stuff<\/a>. (Sadly, the feature has vanished now that he&#8217;s moved to WordPress.)<\/p>\n<p>The trick with this promo thing is that I need strike the right balance. If I have too few articles available, then you&#8217;ll see the same few dozen suggestions appear again and again. If I&#8217;m too greedy about putting things in there, then it lowers the overall quality. It&#8217;s no longer my &#8220;best stuff&#8221; but just &#8220;more stuff&#8221;, turning it into a really inefficient way of exploring the archives.<\/p>\n<p>Believe it or not, there were actually over 100 items in the list. I know after a few months of repetition it felt like there were just a dozen, but it really was that many. I&#8217;ve added another 30 or so, which might help break up the monotony. I suppose the other way to help would be if I just wrote more great content worthy of being featured, but to be honest that&#8217;s a lot of work.<\/p>\n<p>If you want to see all 130 at once for some reason, you can do so on <a href=\"http:\/\/www.shamusyoung.com\/\">the front page<\/a> I mentioned earlier. That&#8217;s basically all it is. &#8220;Hi. I&#8217;m Shamus Young! (Dumps promo database on you.)&#8221;<\/p>\n<p>To my embarrassment, all of the promo entries were being pulled out of text file, like some shameful ad-hoc database. Last week I used the downtime to put it all in a <em>proper<\/em> database, and wrote some PHP scripts to help me maintain it.<\/p>\n<p>I dumped Bootstrap, the Javascript \/ CSS package that so many sites use. I only used it for the little gizmo at the top that shows off old content. It was nice, but Bootstrap also &#8220;corrects&#8221; a lot of CSS stuff and when things don&#8217;t look the way I expect, I was always worried I was falling victim to some unknown Bootstrap sorcery. I <strong>hate<\/strong> working with CSS, and Bootstrap just gave me one more thing to worry about.  <\/p>\n<p>I also fussed with the site theme a little. Not much. I&#8217;m actually pretty happy with how the site is right now. If you&#8217;ve ever been cooped up in the house for so long that you feel compelled to rearrange the furniture for no particular reason, then you get why I felt the need to mess with the theme.<\/p>\n<p>Another note is that some of the character encoding got borked during the database migration. The accented &eacute; was replaced with &agrave;\u00a9, which screwed up post titles to be something like <a href=\"?p=41408\">D&agrave;\u00a9nouement 2017: The Best Stuff<\/a>. Yuck. It seemed to impact posts at random. Quotation marks would be screwed up for one post in a series but not the rest. Sometimes apostrophes were replaced with junk and sometimes they were left alone.  I fixed as many as I could find, but if you spot more garbled encodings please leave a comment on the affected post. <\/p>\n<p>I have to fix these using global, can&#8217;t-be-undone SQL commands like this:<\/p>\n<pre lang=\"sql\">UPDATE wp_posts SET post_content = REPLACE (post_content, '&agrave;\u00a9', '&eacute;');<\/pre>\n<p>I do a backup beforehand, but it&#8217;s still terrifying. <\/p>\n<p>One last note is the comment editing plugin. There are two major plugins for this. One is simple with no options and only allows editing for 5 minutes. The other has tons of bells and whistles but allows me to set an arbitrary edit window. (I&#8217;m a fan of 15 minutes myself.) I&#8217;m still trying to decide which one is the best fit. <\/p>\n<p>So that&#8217;s the new stuff. Hopefully it all works for you. Let me know if anything is broken.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Besides sulking, ranting, and pacing restlessly while my site was down, I spent the last several days updating bits of the site that have been neglected for ages. Most of this is probably only interesting or useful for new readers, but just in case you&#8217;re curious what I did: There&#8217;s a new front page. Yeah. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[111],"tags":[],"class_list":["post-41653","post","type-post","status-publish","format-standard","hentry","category-notices"],"_links":{"self":[{"href":"https:\/\/www.shamusyoung.com\/twentysidedtale\/index.php?rest_route=\/wp\/v2\/posts\/41653","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.shamusyoung.com\/twentysidedtale\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.shamusyoung.com\/twentysidedtale\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.shamusyoung.com\/twentysidedtale\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.shamusyoung.com\/twentysidedtale\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=41653"}],"version-history":[{"count":15,"href":"https:\/\/www.shamusyoung.com\/twentysidedtale\/index.php?rest_route=\/wp\/v2\/posts\/41653\/revisions"}],"predecessor-version":[{"id":41716,"href":"https:\/\/www.shamusyoung.com\/twentysidedtale\/index.php?rest_route=\/wp\/v2\/posts\/41653\/revisions\/41716"}],"wp:attachment":[{"href":"https:\/\/www.shamusyoung.com\/twentysidedtale\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=41653"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.shamusyoung.com\/twentysidedtale\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=41653"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.shamusyoung.com\/twentysidedtale\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=41653"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}