MfGames Jekyll Perl2024-03-27T17:39:22Zhttps://d.moonfire.us/tags/mfgames-jekyll-perl/D. MoonfireCreative Commons Attribution-NonCommercial-ShareAlike 4.0 InternationalStupid obsessions2014-07-30T05:00:00Zhttps://d.moonfire.us/blog/2014/07/30/stupid-obsessions/For the last two days, I've gotten obsessed about fixing a minor thing on my website.<p>For the last few years, I've been pretty good about only focusing on projects that advance my long-term plans. However, there are occasionally little things that don't really <em>help</em> me. The last few days was one of those projects. Recently, I switched over to <a href="http://jekyllrb.com/">Jekyll</a> because WordPress was giving me a hard time. I worked on it for a few days, but stopped because I really needed to work on other things.</p>
<p>And then two days ago… oh, that was not the smartest thing to do. I wanted to fix a couple minor things, mainly breadcrumbs and navigation for posts. I figured it'd be a couple hours effort and I'd be done.</p>
<p>I managed to get breadcrumbs back in on the posts, navigation, and everything else that I planned on doing it. However, I had to write a <em>lot</em> of other programs and reinvent the wheel to get everything working together.</p>
<h1>Obsession</h1>
<p>Somewhere in the middle of last night, I knew that I should have just let it go and used the old version. I have writing and programming to do, not obsess about getting annual and month archives on the site.</p>
<p>Around midnight, I even said “just put it down,” but I couldn't. It was haunting me. I kept telling myself “just a few seconds until I'm done.” Of course, I knew that wasn't true, but I had so much trouble putting it down.</p>
<p>This evening, I finally finished the coding on the site. I only fixed a few minor things, ones that no one will probably notice, but now I'm happier with the site. And I can let it go.</p>
<h1>Jekyll and Ruby</h1>
<p>I'll admit, some of the obsession comes from solving problems. I don't know Ruby very well (the language Jekyll is written in) and I was trying to just “get it working” which means I use Perl to prototype. Yeah, it isn't the <em>right</em> way of doing it, but it's the way I think and the time I was willing to put into it.</p>
<p>Sooner or later, I'll have to learn how to write some of these features in Ruby and proper Jekyll plugins, but the <a href="https://github.com/dmoonfire/mfgames-jekyll-perl">Perl version</a> seems to work for what I want, including all those breadcrumbs, collection gathering, and archives.</p>
<p>Now, I can do what I was suppose to do.</p>
And a lovely Monday to say the least2014-01-20T06:00:00Zhttps://d.moonfire.us/blog/2014/01/20/and-a-lovely-monday-to-say-the-least/<p>This last week was a fairly productive one, though not always in ways I expected. I didn't have any real plans for the week, which always makes me feel like I'm floating in a tub, but given the project at work, it was for the best. (I don't think I have enough commas in that previous sentence.)</p>
<p><!--more--></p>
<h1>Writing</h1>
<p>I had no writing goals this week. I ended up doing a few hours of relaxing writing (e.g., writing without a goal in mind) on Saturday, which was fantastic. Other than that, I didn't do much.</p>
<p>I did submit two chapters of <a href="http://d.moonfire.us/blog/tag/sand-and-love">Sand and Love</a> to the writing group. It seemed fairly positive, though I still have a lot of work with one of the chapters (the one I inserted for the plot).</p>
<h1>Jekyll verses DocPad</h1>
<p>Yesterday, I converted one of my secondary sites from <a href="http://docpad.org/">DocPad</a> to <a href="http://jekyllrb.com/">Jekyll</a>. It wasn't on a lark, but a hope that it would take less CPU and heat to generate the site. And, thankfully, it did. This is a 500+ page site and whenever DocPad ran through it, my laptop would heat up for six minutes while it ran. The Jekyll version is about two minutes and didn't overheat the machine.</p>
<p>I wasn't really using the things DocPad excelled at. I use templates, but I also prefer to pre-process my files in other languages (Perl, typically). So, I was giving both versions complete versions.</p>
<p>I did abstract and polish up some of those <a href="https://github.com/dmoonfire/mfgames-jekyll-perl">utilities</a> and threw them on GitHub. They are pretty rough, but eventually I'm planning on leading into a wiki-like generator that takes Markdown files and generates a website with good quality taxonomies.</p>
<p><em>And since I'm trying to focus my tasks on writing, the wiki-like is going to eventually be the encyclopedia site for my fantasy world.</em></p>
<h1>Map</h1>
<p>Speaking of encyclopedia sites, I spent most of my lunch breaks starting to work on the map of Fedran, my fantasy world. It's going to take a few weeks to complete, but I really want to make sure that the events in my novels actually make sense.</p>
<p>I made a mistake by creating speedsters. They can cover so much distance that 1,000 miles isn't that far. Since I want to finish <a href="http://d.moonfire.us/blog/tag/sand-and-blood/">Sand and Blood</a> this year (again), this is one more thing toward that goal.</p>
<h1>Raspberry Pi</h1>
<p>For the holidays, my mother got me a Raspberry Pi. It was such a tiny little thing, too. There are a few things I want to do with it, but the first one was to create a wireless access point for the far side of the house. This ended up being a remarkably hard thing to do. Apparently the Pi's default settings resists bridging two networks as opposed to creating an entirely separate network for that side of the house.</p>
<p>I'm not entirely sure if this will work, though, but I'm hoping. I'm using the same ESSID on both sides of the house but with different channels. In theory, from my reading, this means that devices will switched access points depending on which one is stronger.</p>
<h1>ownCloud</h1>
<p>Last week, I was excited to notice that <a href="http://owncloud.org/">ownCloud</a> had a synchronization client for Linux and Windows. It promised to give me something like Dropbox, but with me controlling the end and without as much advertising.</p>
<p>Overall, a week of using it has not been unpleasant. There are some quirks about the clients I dislike. The biggest is having to enter the password every time I reboot since I picked a "secure" password (it looks like line noise). It also doesn't have a Javascript API, which means I can't migrate my TODO file over quite yet.</p>
<p>I've been pretty happy with it so far. I know Dropbox is an awesome company in general, I like open-source software, I like being in control of my networks, and I don't like the pyramid scheme of advertising ("refer your friends, get more space"). I already know they use Amazon's S3 for their filesharing, but I'd rather pay a monthly amount and get advertisement- and nag-free.</p>
<h1>Cleaning</h1>
<p>Oh, it never ends. Three hours on Sunday, but it meant that the rest of the days was very pleasant. :)</p>
<h1>Exercising</h1>
<p>Last year was a bad year for my health. As much as I want to say otherwise, it was. Last Wednesday, part of the effort to correct that showed up in the form of a brand new elliptical machine. And a co-worker happened to be getting rid of their flat-screen TV <em>and</em> I happened to get a Raspberry Pi to create a wireless network for the Roku. So, I have a workout room. And a nice TV for a distraction.</p>
<p>Though, the captioning on the Roku 2 still sucks. (Though, I saw something that said they were finally letting users pick caption colors. Please, please let there also be outlines.)</p>
<p>SMWM's current plan is to force me to work out at least twenty minutes every day. If I don't do it cleaning or walking or going to the gym, I'm going to be sent down to the basement. As much as I'm going to hate it, I'm probably going to like it in the long run.</p>