Remove a bunch of blogposty crap

This commit is contained in:
Salt 2021-01-19 21:40:08 -06:00
parent 0723dfdb30
commit fcb31ba60d
9 changed files with 1 additions and 278 deletions

View File

@ -9,14 +9,13 @@
<div class="content">
<div class="section">
<h1>About 9iron</h1>
<p>9iron is a website spun up by yours truly to unify the services I host and inevitably rope my friends into. In addition to being a link aggregator, it's also a blog. But nobody reads my shitty blogposts.</p>
<p>9iron is a website spun up by yours truly to unify the services I host and inevitably rope my friends into. It also aggregates documentation about the various games we play.</p>
<h1>About Me</h1>
<p>I am Salt. I'm a sysadmin and I play video games. I try to be most active on Matrix, but inevitably have to use Discord all the damn time. You can also reach me very effectively through the Fediverse and email.</p>
<p>Hit me up if you wanna play something or if shit breaks.</p>
<dl>
<dt>Fedi:</dt>
<dd>salt@cowfee.moe</dd>
<dd>salt@weeaboo.space</dd>
<dt>Matrix:</dt>
<dd>@salt:9iron.club</dd>
<dt>Discord:</dt>

View File

@ -1,49 +0,0 @@
<?php header("Content-Type: application/rss+xml; charset=ISO-8859-1"); ?>
<?xml version="1.0" encoding="ISO-8859-1"?>
<rss version="2.0">
<channel>
<title>9iron</title>
<link>https://9iron.club/posts</link>
<description>Ramblings of some dumb young admin guy</description>
<language>en-us</language>
<?php
/* Generate feed */
$dir = $_SERVER['DOCUMENT_ROOT']."/posts/";
$posts = scandir($dir, 1);
$ignore = array("index.php", "feed.php", ".", "..");
$extensions = array(".php", ".html", ".htm");
/* Create 25 entries */
foreach (array_slice($posts, 0, 26) as &$post) {
/* Check against blacklist */
if (in_array($post, $ignore)) continue;
$postlocation = $dir.$post;
$posturl = "/posts/".$post;
/* This is a date because I write all my posts as such */
$postdate = pathinfo($postlocation, PATHINFO_FILENAME);
/* Fetch title and summary */
$title = "Title not available";
$summary = "Summary not available";
$dom = new DOMDocument();
if ($dom->loadHTMLFile($postlocation)) {
$xpath_section = new DOMXpath($dom);
/* Get title */
$list = $dom->getElementsByTagName("title");
if ($list->length > 0) $title = $list->item(0)->textContent;
/* Get summary */
$list = $xpath_section->query('//div[@class="section"]//p');
if ($list->length > 0) $summary = $list->item(0)->nodeValue;
}
/* Mark up the data */
$rssfeed .='
<item>
<title>'.$title.'</title>
<description>'.$summary.'</description>
<link>https://www.9iron.club'.$posturl.'</link>
<pubDate>'.date('r', strtotime($postdate)).'</pubDate>
</item>';
}
/* List it */
echo $rssfeed;
?>
</channel>
</rss>

View File

@ -1,32 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<?php include $_SERVER['DOCUMENT_ROOT'].'/src/common-meta.php';?>
<link rel="shortcut icon" href="/favicon.ico" />
<title>9iron - Midnight Musings</title>
</head>
<body>
<div class="container">
<?php include $_SERVER['DOCUMENT_ROOT'].'/src/common-header.php';?>
<div class="content">
<div class="section">
<h1>Midnight Musings</h1>
<p>It's really more like 5 in the morning, but whatever.</p>
<p>I'm honestly not entirely sure what I want out of this website. On the one thing, I could host a blog here, but on the other, I'm trying to do so by writing out the markup by fucking hand. Like c'mon, guy.</p>
<p>Perhaps it's just because it's way way late, perhaps it's because I didn't get enough sleep last night, perhaps a combination thereof, but I don't really care. I feel like there's charm in just writing it out in HTML and committing it, waiting for my box to pull it at noon.</p>
<p>But back to the point at hand: I have no clue what to do here. Like, it already aggregates links just fine. I've lost many an hour just making this place look good and all I use it for is a New Tab page that I break every fifth commit and ignore half the time anyway.</p>
<p>Perhaps it's the right idea to host a blog here. Already I feel a bit clearer-headed writing my thoughts out like this (even if it is 5AM and my eyes hurt). I've gotta figure a few things out, probably script the production of these posts and manage an RSS feed, but altogether I'm starting to warm up to the idea.</p>
<p>You wouldn't think it reading through this stream-of-consciousness garbage, but I used to be pretty good at writing. I used to be able to write very coherent papers with good pacing and pleasing verbiage, but most of those abilities have fallen off to the wayside since the only things I've written since are tweets and reddit posts. I've started to swear a lot more in place of using accurate wording to express my points-</p>
<p>God dammit, that's like the third time 29 Years has come on. Hang on.</p>
<p>There we go.</p>
<p>-which is possibly the worst fate for a writer. That and carpal tunnel, I suppose.</p>
<p>Yeah, this oughtta be the remedy for my prose that I've been looking for. Getting back into the rhythm of writing for fun has been on my backlog for so long and I've now got the opportunity to execute it. It'll be healthy, for sure.</p>
<p>But typing this out by hand sucks.</p>
<p>- Salt</p>
</div>
</div>
<?php include $_SERVER['DOCUMENT_ROOT'].'/sidebar.html';?>
<?php include $_SERVER['DOCUMENT_ROOT'].'/src/common-footer.php';?>
</div>
</body>
</html>

View File

@ -1,32 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<?php include $_SERVER['DOCUMENT_ROOT'].'/src/common-meta.php';?>
<link rel="shortcut icon" href="/favicon.ico" />
<title>9iron - Nightly Blogpost Time</title>
</head>
<body>
<div class="container">
<?php include $_SERVER['DOCUMENT_ROOT'].'/src/common-header.php';?>
<div class="content">
<div class="section">
<h1>Nightly Blogpost Time</h1>
<p>I work second shift, currently, which puts me going to bed at like 4-5AM, sometimes 6-7 depending on my shift. Naturally, <em>no</em> sensible motherfucker is up at this hour, which gives me a lot of time to do nothing but write code and dump my thoughts.</p>
<p>I'm really enjoying just how much thoughtless (thoughtful?) garbage I'm able to throw at this terminal in a night. It really helps precipitate my thoughts into more solid opinions, for sure.</p>
<p>But enough about that.</p>
<p>Today was pretty nice. Played a lot of modded MC and wrote up a good few pages documenting my setup. At this rate, I'm probably gonna decomm the dokuwiki and just write it all out here. Looks a lot cleaner over here.</p>
<p>I feel like I'm starting to get the hang of minimalist webdev. Regardless, my current workflow is... messy, to say the least. I really shouldn't be dicking around knee-deep in HTML for every post when I could write a small preprocessor. I <em>really</em> need to sort out deployment, too. Currently, I just remote into the server and <code>sudo git pull</code> the site down every time I write a post, which could be hella automated. And then there's the entire concept of actually working on a feed, which is insanely difficult to do given my workflow.</p>
<p>See, one of the things I want this site to be (and not necessarily the child sites on this domain) is stateless. I want to be able to clone the repo to a webroot and launch Apache and just have my site. No fuss, no mess. Now I've already broken this paradigm by including modpacks in the webroot in the gitignore'd <code>/files</code> directory, but I'm willing to exclude 200MB binary files for the sake of sanity. But as such, I don't want anything on the box to generate the feed without my intervention.</p>
<p>I suppose I could automatically generate the feed with a script based on the contents of files in here. It shouldn't be too hard to just copy the contents of a couple tags over in a Python script. And I suppose with that I could just nail a new entry to the top of the file, make a commit, and push it alongside the post.</p>
<p>Maybe this workflow isn't too bad. Just needs a little glue is all.</p>
<div class="break"></div>
<p>I'm hoping that, once I get in the habit of making these posts, I'll have much clearer thoughts planned out. If I make it a habit, I'll start thinking over the course of the day what sort of things I want to include, what thoughts I want to present, etc. As such, I apologize in advance for the next like twenty of these fucking things. They're gonna read like ass, just like this one.</p>
<p>But that's okay. I'll improve.</p>
<p>- Salt</p>
</div>
</div>
<?php include $_SERVER['DOCUMENT_ROOT'].'/sidebar.html';?>
<?php include $_SERVER['DOCUMENT_ROOT'].'/src/common-footer.php';?>
</div>
</body>
</html>

View File

@ -1,43 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<?php include $_SERVER['DOCUMENT_ROOT'].'/src/common-meta.php';?>
<title>9iron - Inflation in Modded Minecraft</title>
</head>
<body>
<div class="container">
<?php include $_SERVER['DOCUMENT_ROOT'].'/src/common-header.php';?>
<div class="content">
<div class="section">
<h1>Inflation in Modded Minecraft</h1>
<p>It's hard to believe Minecraft is 9 years old, and even harder to believe that <a href="https://howoldisminecraft1710.today/">the single biggest version for modded</a> is almost 6. There's been so much refinement in modding tools and mods themselves since; orders of magnitude more complexity, more things, <em>cooler</em> things. The dev for Factorio once said that a major inspiration for him was IC2. <em>It's that good</em>. But it's inflated to hell and back.</p>
<p>Let's take a popular mod as a baseline, as I feel that it best represents (and is the posterboy for) its power system: Thermal. A basic generator produces 80RF/t (unit power per unit time) and can handle a basic powered furnace and a Pulverizer simultaneously. With upgrades, some of the largest basic Thermal generator setups I've seen produce upwards of 20-80kRF/t, can power <em>damn</em> good furnaces, and are easily scaleable.</p>
<p>Thermal also provides an addon mod: Redstone Arsenal. This mod adds tools, armor, and weapons that consume RF to work. They're upgrades from diamond, can never break, but require infrastructure. It's a good system. The armor holds 800kRF per piece and consumes 200 per hit. Wearing four pieces of armor, this means it takes half a second of basic shitty coal generator power production to effectively add one durability point to your better-than-diamond armor.</p>
<p>Enter third-party addon mods. There exist many, <em>many</em> mods that produce and consume several orders of magnitude more power. Extreme Reactors can produce 100<em>M</em>RF/t without breaking a sweat, Draconic Evolution is notorious for its power usage (4MRF to conjure an overpowered arrow out of thin air) and invincibility armor, RFTools Dimensions provides user-controllable worlds and lets you buy resources that you should <em>never</em> allow a player to buy given that you have the power to support the place long enough to get your shit and get out, etc.</p>
<p>Now, these mods weren't all developed at the same time. Early on, the most insane mod you could get was Buildcraft, which had a Quarry. Then came IC2, which had cool stuff like a mining laser, OG powered armorsuits, and nuclear reactors that would blow your base a new asshole if you weren't careful. Thermal came along and eventually pioneered a new power system, AE followed and allowed for centralized storage and automation, etc.</p>
<p>Basically, what I'm getting at is that the modded Minecraft ecosystem has inflated insanely quickly. Power costs are somewhere between 3-9 (or 12!) orders of magnitude off of what the developers of those power systems originally intended. Resources in endgame ME systems can number in the millions. Damage has been affected too, but dramatically less so because functional overkill is really low in Vanilla and combat is uninteresting regardless.</p>
<p>What made me realize this is an ongoing playthrough with Botania. Just Quark and Botania. And Spartan Weapons because a friend wanted it, I guess. You move from generation on the order of a 16th of a Mana Pool to generation on the order of half a pool. It's just enough difference in stages to make you want to progress, and that's perfect.</p>
<p>The power curve also drops off really quickly. The highest damage sword Botania offers is only equivalent to diamond, same with the armor. Instead, it offers little odds and ends that are usually reserved for magic mods: quicker movement, health regen, second sight, potion effects, longer reach, and other unique trinkets. It adds swords that fire laser beams if you wait for the attack timer, making combat more interesting. In effect, what this means is that a botanist gathers much different power than would be obtained in the larger RF ecosystem.</p>
<p>I'm finding that, in the end, a pack with just Botania plays better than a pack with a bunch of RF tech mods. Botania has just as much focus on automation as a tech pack would (and with significantly more automation complexity, but that's a topic for another post) but doesn't throw out Vanilla balance. Combat remains challenging and engaging, the environment isn't trivialized by creative flight early on, and the endgame is powerful but grounded.</p>
<p>The point boils down to this: slow down and don't trivialize shit.</p>
<p>Every mod makes their stuff more powerful than the one that preceeded it to make sure people use it. What ends up happening is that earlier mods get shunted to the side because their numbers aren't big enough, Vanilla included, even if there's absolutely <em>no</em> need for that much power. So the solution is as such:</p>
<ul>
<li>Normalize power generation and consumption across machines in a pack</li>
<li>Put a cap on the player's power and ensure that it doesn't trivialize anything</li>
<li>If you do trivialize something, add something else to replace it</li>
<li>Create in-world challenges, like things to fight or places to explore and conquer</li>
<li>Omissions are just as powerful as inclusions in pack development</li>
<li>High resource costs do not justify breaking balance. No exceptions.</li>
</ul>
<p>Fuck Draconic Evolution.</p>
<p>Make more mob mods.</p>
<p>Somebody needs to do a combat overhaul.</p>
<p>Stop putting creative items at the ends of your packs.</p>
<p>- Salt</p>
</div>
</div>
<?php include $_SERVER['DOCUMENT_ROOT'].'/sidebar.html';?>
<?php include $_SERVER['DOCUMENT_ROOT'].'/src/common-footer.php';?>
</div>
</body>
</html>

View File

@ -1,34 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<?php include $_SERVER['DOCUMENT_ROOT'].'/src/common-meta.php';?>
<title>9iron - An Update</title>
</head>
<body>
<div class="container">
<?php include $_SERVER['DOCUMENT_ROOT'].'/src/common-header.php';?>
<div class="content">
<div class="section">
<h1>An Update</h1>
<p>Just want to keep this site up to speed.</p>
<p>It's been months since my last post and and a lot has happened. I've landed a job as an actual sysadmin, made friends, eased stress, and suffered loss. It's been exhausting, which is why I haven't posted much.</p>
<p>On top of that, I have basically no social media presence so nobody reads these things anyway. I know I said I would do this for myself, but as it turns out, doing things for yourself is hard, and I'm no social butterfly by any metric.</p>
<div class="break"></div>
<p>Beyond personal shit, though, I have updated this site a bit. In no particular order:</p>
<ul>
<li><b>Gitea registrations are now open!</b> Bring your friends and encourage people to run around and write code and file bug reports and do whatever they do on git hosts. Commit bigass binary files and I'll kick your ass.</li>
<li>The website is undergoing a major redesign, and this probably won't even be its final form. There's a lot to do here; I'm no webdev.</li>
</ul>
<p>The Ansible repo that I use to manage 9iron has gotten significantly more complex and significantly more organized. I'm making good use of tags, making good inventory, making good playbooks, and more. Really there are only a few things I need to work on, like separating out roles a bit more and separating plays between installation, configuration, and removal. Oh, and getting ansible-pull figured out.</p>
<p>My weird obsession with statelessness is waning as I figure out backup scripts. Just need to hook into the S3 API and push weekly backups to cold buckets and we're good to start rolling with statefulness again. I realized really quickly that basically any deployment is going to have state.</p>
<p>I ported my tModLoader development environment to Linux and <em>almost</em> everything works. The only thing I can't quite figure out is how to get edit-and-continue to work with the Steam Runtime, but once either that's sorted or I trash my packageset with Terraria dependencies, I should be ready to pick Sutando Da back up. It's a mod I wrote a while back to try to add stands and it was entirely because I wanted to try to implement The World. Timestop actually works pretty well, surprisingly; I didn't think TML would have all the right hooks but it <em>definitely</em> does.</p>
<p>Still listening to The National.</p>
<p>Things are looking bright.</p>
<p>- Salt</p>
</div>
</div>
<?php include $_SERVER['DOCUMENT_ROOT'].'/sidebar.html';?>
<?php include $_SERVER['DOCUMENT_ROOT'].'/src/common-footer.php';?>
</div>
</body>
</html>

View File

@ -1,31 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<?php include $_SERVER['DOCUMENT_ROOT'].'/src/common-meta.php';?>
<title>9iron - Dumb Shit</title>
</head>
<body>
<div class="container">
<?php include $_SERVER['DOCUMENT_ROOT'].'/src/common-header.php';?>
<div class="content">
<div class="section">
<h1>Dumb Shit</h1>
<p>Finally got a wild hare up my ass and redid the CSS. Again. Outside of that, only thing that's been going on is what feels like the collapse of my circle of friends. F. Oh, and Matrix I guess.</p>
<p>I'm not gonna get into the details of it here since this <em>is</em> a public blog and my friends <em>can</em> (read: don't) read it from time to time. Hell, nobody does. But regardless, what <em>did</em> happen feels unjust and I can't help but feel partially responsible for it. I know I wasn't the axeman, but being supportive isn't a virtue.</p>
<p>I'm still sorry, Sam.</p>
<div class="break"></div>
<p>Anyway, onto other happenings.</p>
<p>I now have a Matrix server with open registrations! Check out <a href="/matrix">the setup page</a> for details. At the time of writing, the tutorial still mentions Riot, but it's been rebranded to Element. Should still be the same loose set of steps.</p>
<p>I finally broke down and bought a Pinephone on like the 22nd, just waiting for that to arrive. From what I understand it and PMOS are actually in a pretty useable state, all things considered. Can't wait to have to hack together something to actually make a darn telephone call. At least I've got the know-how to automate whatever dumb bubblegum-and-duct-tape fix I brew up now.</p>
<p>As for the CSS, I'm sure you've probably noticed that a lot has changed. I'm trying to bring this place into more-or-less parity with the rest of my rice. I know it's not exactly the most productive pasttime, but it's therapeutic: just sit back, throw on some nice relaxing music, and write away. Helluva lot less frustrating than trying to diagnose an incomplete Nagios deployment (though I do still need to finish that, fuck). Everything's a bit boxier, a bit tighter, less round and weird, and ideally more useable.</p>
<p>I'm also finding it pretty hard to stay on-task with all this technical shit lately, think I might be getting burnt out. I mean, it's a third shift work-from-home position and all my other hobbies involve computers in some way; there's nothing else it could be. Whenever it may be, I need to take the next chance I get to jump away from all this for a while.</p>
<p>Mad about politics,</p>
<p>But what can you do.</p>
<p>- Salt</p>
</div>
</div>
<?php include $_SERVER['DOCUMENT_ROOT'].'/sidebar.html';?>
<?php include $_SERVER['DOCUMENT_ROOT'].'/src/common-footer.php';?>
</div>
</body>
</html>

View File

@ -1,54 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<?php include $_SERVER['DOCUMENT_ROOT'].'/src/common-meta.php';?>
<link rel="shortcut icon" href="/favicon.ico" />
<title>9iron - Posts</title>
</head>
<body>
<?php include $_SERVER['DOCUMENT_ROOT'].'/src/common-header.php';?>
<div class="content">
<div class="section">
<h1>Posts</h1>
<p>Included is a list of all blog posts I've written here, latest first. I try to post as frequently as I can make an excuse to.</p>
<p>It's also got a <a href="/feed">feed</a> if you want it.</p>
<dl>
<?php
$dir = $_SERVER['DOCUMENT_ROOT']."/posts/";
$posts = scandir($dir, 1);
$ignore = array("index.php", "feed.php", ".", "..");
$extensions = array(".php", ".html", ".htm");
foreach ($posts as &$post) {
// See if it's a blacklisted file
if (in_array($post, $ignore)) {
continue;
}
$postlocation = $_SERVER['DOCUMENT_ROOT']."/posts/".$post;
$posturl = "/posts/".$post;
// Get the title
$title = "Title not available";
$summary = "Summary not available";
$dom = new DOMDocument();
if ($dom->loadHTMLFile($postlocation)) {
$xpath_section = new DOMXpath($dom);
$list = $dom->getElementsByTagName("title");
if ($list->length > 0) {
$title = $list->item(0)->textContent;
}
$list = $xpath_section->query('//div[@class="section"]//p');
if ($list->length > 0) {
$summary = $list->item(0)->nodeValue;
}
}
// Produce a list item
$post = str_replace($extensions, "", $post);
$title = str_replace("9iron - ", "", $title);
echo "<a href=\"$posturl\"><div class=\"subcontainer\"><h3>$post: $title</h3><p>$summary</p></div></a>";
}
?>
</dl>
</div>
</div>
<?php include $_SERVER['DOCUMENT_ROOT'].'/src/common-footer.php';?>
</body>
</html>

View File

@ -9,7 +9,6 @@
<nav class="navbar">
<ul>
<a href="/"><li>Home</li></a>
<a href="/posts"><li>Posts</li></a>
<a href="/about"><li>About</li></a>
</ul>
</nav>