<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>hi, it&#39;s mike</title>
    <link>https://mike.puddingtime.org/tags/octopress/</link>
    <description>Recent content on hi, it&#39;s mike</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en-us</language>
    <managingEditor>mike@puddingtime.org (mike)</managingEditor>
    <webMaster>mike@puddingtime.org (mike)</webMaster>
    <copyright>© 2026, mike</copyright>
    <lastBuildDate>Mon, 06 May 2013 01:00:42 +0000</lastBuildDate>
    <atom:link href="https://mike.puddingtime.org/tags/octopress/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Not so much after all</title>
      <link>https://mike.puddingtime.org/posts/2013-05-06-not-so-much-after-all/</link>
      <pubDate>Mon, 06 May 2013 01:00:42 +0000</pubDate><author>mike@puddingtime.org (mike)</author>
      <guid>https://mike.puddingtime.org/posts/2013-05-06-not-so-much-after-all/</guid>
      
      <description>![](https://media.puddingtime.org/archive/mph.puddingbowl.org/wordpress/wp-content/uploads/2013/05/IMG_0782-1.jpg) I’m not going to say the whole Octopress thing was a bad idea. It was a fine idea. It was just a fine idea premised on the notion that it might be fun to manage a blog with git, and …</description>
      <content:encoded><![CDATA[<div style="text-align:center;margin:1em;">![](https://media.puddingtime.org/archive/mph.puddingbowl.org/wordpress/wp-content/uploads/2013/05/IMG_0782-1.jpg)</div>
<p>I&rsquo;m not going to say the whole Octopress thing was a <em>bad</em> idea. It was a fine idea. It was just a fine idea premised on the notion that it might be fun to manage a blog with git, and that did not prove out. The whole build process is a drag, mobile blogging wasn&rsquo;t something I felt like working out, and the whole &ldquo;make a new post, go to it in the filesystem, edit it, remember the thing in the YAML frontmatter to toggle its liveness if you&rsquo;re not done&rdquo; wasn&rsquo;t cool.</p>
<p>I&rsquo;ve got a few entries to bring back, but they were more bloggy than densely informational, so I don&rsquo;t think anyone&rsquo;s attached to them but me. I mostly worry about people being able to find the entry about <a href="http://mph.puddingbowl.org/2009/02/import-mailapp-notes-into-evernote/">converting Mail notes to Evernote notes</a>, because four years later, people keep finding it and appreciating it.</p>
<div style="text-align:center;margin:1em;">![](https://media.puddingtime.org/archive/mph.puddingbowl.org/wordpress/wp-content/uploads/2013/05/IMG_0785-1.jpg)</div>
<p>Also the <a href="http://mph.puddingbowl.org/2010/02/org-mode-in-your-pocket-is-a-gnu-shaped-devil/">org-mode one</a> one, because it really seems to make people happy.</p>
<p>And I&rsquo;ve been thinking about <a href="http://mph.puddingbowl.org/2002/11/pie-diplomacy/">pie diplomacy</a> a lot lately.</p>
<p>Hey, let&rsquo;s make it about something more than how the blog is run:</p>
<ul>
<li>contemplative photography</li>
<li>ukulele</li>
</ul>
<p>I did contemplative photography on my last visit to Las Vegas. I have never played a ukulele.</p>
<p>The contemplative photography thing sounds enticing, because I&rsquo;m working outside my home and have four walks a day where building in an extra ten minutes to get to the Max stop could yield some nice results.</p>
<p>The ukulele thing sounds enticing for no reason I&rsquo;ve managed to hold down and inspect.</p>
<div style="text-align:center;margin:1em;">![](https://media.puddingtime.org/archive/mph.puddingbowl.org/wordpress/wp-content/uploads/2013/05/IMG_07391.jpg)</div>
<p>#fickleboy #octopress #wordpress</p>
<p><em><a href="mailto:mike@puddingtime.org?subject=Re%3A%20Not%20so%20much%20after%20all">Drop a line about this</a>.</em></p>]]></content:encoded>
    </item>
    <item>
      <title>Shape of the problem, better colored ls output on Macs</title>
      <link>https://mike.puddingtime.org/posts/2013-02-11-shape-of-the-problem-better-colored-ls-output-on/</link>
      <pubDate>Mon, 11 Feb 2013 09:41:41 +0000</pubDate><author>mike@puddingtime.org (mike)</author>
      <guid>https://mike.puddingtime.org/posts/2013-02-11-shape-of-the-problem-better-colored-ls-output-on/</guid>
      
      <description>BBEdit tells me it found 439 occurrences of “img src” in 317 files in the Markdown archives for dot unplanned, so this is starting to feel kind of doable. 122 of those occurrences are flickr images, only 27 use the ancient Movable Type 3 “click the thumbnail to pop up a window with the full image …</description>
      <content:encoded><![CDATA[<p>BBEdit tells me it found 439 occurrences of &ldquo;img src&rdquo; in 317 files in the Markdown archives for dot unplanned, so this is starting to feel kind of doable. 122 of those occurrences are flickr images, only 27 use the ancient Movable Type 3 &ldquo;click the thumbnail to pop up a window with the full image inside&rdquo; markup, and 142 are consistently organized WordPress uploads I can manage with a little find-foo and a BBEdit text factory.</p>
<p>Hey &hellip; here are some things I learned to do, figured out or got around to:</p>
<p>Better color <code>ls</code> in Mac:</p>
<p>You can do <code>ls -G</code> in a Mac right now, without MacPorts or Homebrew installed, and you&rsquo;ll get BSD-style colored output, which is to say &ldquo;not as good as GNU-style colored output.&rdquo; Directories, symlinks, and executables will be colored. That&rsquo;s o.k. But I remembered back in Linux times where I could get things colored down to the file type. That&rsquo;s what I prefer. I did some things one might reasonably do expecting to get that GNU-style output back on my Mac, missing a few key steps and badly aggravating myself, then stumbled across a missing piece last week while trying to figure out better bash prompts.  So here&rsquo;s what to do:</p>
<ul>
<li>Pick one of <a href="http://www.macports.org">MacPorts</a> or <a href="https://github.com/mxcl/homebrew">Homebrew</a>. I do Homebrew, so the steps after this one should be read as <em>vague guidance</em> by MacPortists.</li>
<li>Install the GNU coreutils package: <code>brew install coreutils</code></li>
<li>Download <a href="https://gist.github.com/pdxmph/4751727">this gist</a> and save it to <code>~/.dir_colors</code></li>
<li>Make sure your new <code>~/.dir_colors</code> file has a line in it that starts with &ldquo;TERM&rdquo; and then matches the output of the command <code>echo $TERM</code></li>
<li>Get this into your <code>~/.profile</code> or <code>~/.bash_profile</code> or whatever it is you do<sup>*</sup>:</li>
</ul>
<script src="https://gist.github.com/pdxmph/4751777.js"></script>  
<ul>
<li><code>source</code> your <code>~/.profile</code> or <code>~/.bash_profile</code></li>
<li>Try it out in a directory full of different kinds of things:</li>
</ul>
<p><a href="https://media.puddingtime.org/archive/mph.puddingbowl.org/wordpress/wp-content/uploads/2013/02/better_ls_colors.jpg.png" class="glightbox" data-gallery="post-8454ada0b26b439d1e46b9baa43ff42c"><img src="https://media.puddingtime.org/archive/mph.puddingbowl.org/wordpress/wp-content/uploads/2013/02/better_ls_colors.jpg.png" alt="" loading="lazy"></a></p>
<p>Is it awesome for you? Hope so!</p>
<p>More informative <code>ls</code></p>
<p>I also learned about a few more nice <code>ls</code> options while I was mucking around, and now I include these in my <code>ls</code> alias:</p>
<ul>
<li><code>-F</code> (classify): Which marks symlinks and directories with a <code>@</code> and <code>/</code> respectively. Yes, they are also colored, but I like seeing the trailing <code>/</code> after a directory.</li>
<li><code>--group-directories-first</code>, which does what it says on the tin.</li>
<li><code>-h</code>, for &ldquo;human readable output&rdquo; when displaying file sizes. I finally, after years of just typing it out, realized I never use <code>ls</code> without, so I canonicalized it. I eagerly await the first horrific misunderstanding that is going to cause me on some system that is not mine some day.</li>
</ul>
<p><small><sup>*</sup>Do I sort of hate the hall of mirrors that is <code>.bashrc</code>, <code>.bash_profile</code>, and <code>.profile</code>? Boy, I sure do. Especially in the age of things like <code>rbenv</code>/<code>rvm</code> and whatever else quietly diddles what they think your shell&rsquo;s init file oughta be to make whatever blood magic they&rsquo;re up to work correctly. I thought &ldquo;just switch to zsh&rdquo; would fix that, but then you start getting into bizarre &ldquo;oh, that doesn&rsquo;t work with zsh during install&rdquo; situations that make you realize you&rsquo;re losing all the time you thought you&rsquo;d get back with obscure little shell workflow optimizations trying to figure out why suddenly <code>which</code> doesn&rsquo;t work anymore.</small></p>
<p>#blogging #ls #octopress</p>
<p><em><a href="mailto:mike@puddingtime.org?subject=Re%3A%20Shape%20of%20the%20problem%2C%20better%20colored%20ls%20output%20on%20Macs">Drop a line about this</a>.</em></p>]]></content:encoded>
    </item>
    <item>
      <title>tentacled gardener</title>
      <link>https://mike.puddingtime.org/posts/2013-02-10-tentacled-gardener/</link>
      <pubDate>Sun, 10 Feb 2013 03:27:46 +0000</pubDate><author>mike@puddingtime.org (mike)</author>
      <guid>https://mike.puddingtime.org/posts/2013-02-10-tentacled-gardener/</guid>
      
      <description>Yesterday at work I demoed some things I’ve been doing to make dealing with a Jekyll/Markdown-based workflow easier. It was all about knowing how to use existing stuff better, not inventing new stuff. Two things are thanks to BBEdit being so goddamn awesome, and took just a little time to discover …</description>
      <content:encoded><![CDATA[<p>Yesterday at work I demoed some things I&rsquo;ve been doing to make dealing with a Jekyll/Markdown-based workflow easier. It was all about knowing how to use existing stuff better, not inventing new stuff. Two things are thanks to BBEdit being so goddamn awesome, and took just a little time to discover then apply to our own environment:</p>
<ol>
<li>Custom HTML preview templates (so you can see your Markdown looking like rendered HTML in the same templates in use on your live site)</li>
<li>Custom Markdown interpreters, so if you&rsquo;ve strayed from vanilla Gruber Markdown, you can preview things like table markup rendered correctly.</li>
</ol>
<p>Those two things make day-to-day Markdown authoring in Jekyll 90 percent livable.</p>
<p>Jekyll also has a preview server and filesystem watcher that&rsquo;s supposed to give you the ability to run a little Webrick instance and have your site automatically regenerate when changes are made. That would address a pain point we have when we&rsquo;re writing docs or trying to deal with a bit of <a href="http://liquidmarkup.org">Liquid</a> and need to see how things will look for real rather than in Markdown and code. The problem is that our docs site is pretty big and there&rsquo;s a lot for the filesystem watcher to keep track of, and it takes forever (o.k., 3 minutes) to build the site.  So I tested Jekyll&rsquo;s preview server and found myself making a change to a file and waiting as long for Jekyll to redraw that one page as I would have anyhow just to preview the whole site.</p>
<p>Last week, with the <a href="http://liquidmarkup.org">release of Puppet 3.1</a>, I had to work with the Liquid in the templates to selectively show or hide links to the newly incorporated YARD <a href="http://docs.puppetlabs.com/references/3.1.latest/developer/index.html">developer documentation we&rsquo;re maintaining</a>. Being new to writing Liquid, I was doing a lot of stumbling around and experimenting, and it was driving me nuts. The immediate solution to the problem was actually to just make the minimum viable bit of Ruby needed to parse and render a here doc with Liquid markup in it. That would be something like this:</p>
<script src="https://gist.github.com/pdxmph/4679961.js"></script>
<p>Both BBEdit and Textmate will run code with <code>⌘r</code>, so it just takes a second to paste that into a window and run it and see what Liquid will make of it.</p>
<p>So that got me over the hump of not wanting to wait to regenerate our site just to make sure I was handling a few little conditionals correctly, but there are a other places where practically live rendering of Liquid would come in handy. For instance, our syntax highlighting doesn&rsquo;t preview well.</p>
<p>So as I was fiddling with <a href="http://octopress.org">Octopress</a> last week, I noticed one of its Rake tasks was <code>isolate</code>, which allows you to specify a specific file (or a fragment of its name). Rake moves all the files in the <code>_posts</code> directory to a stash directory except for the named file, then the little preview server spins up and the file is watched for changes. It makes previewing changes exactly as they&rsquo;d be rendered almost instantaneous.</p>
<p>The Octopress solution wasn&rsquo;t exactly right for us because it assumes a flat collection of files: No directories. And it also wasn&rsquo;t exactly right for us because I think we tend to work on groups of files that may or may not share names but will probably be in a common directory.</p>
<p>So I took Octopress&rsquo;s <code>isolate</code> and turned it into <code>preview</code>: Instead of specifying a file, you specify a directory, e.g. <code>rake preview[hiera]</code>, and then let the little Webrick/fswatcher bits of Jekyll run. While I was in there, I added a <a href="http://en.wikibooks.org/wiki/Ruby_Programming/Here_documents">here doc</a> that provides an index of files available for preview/edit at the docroot of the preview server (so you don&rsquo;t need to guess URLs to find what&rsquo;s available). Even with a dozen or so files to watch and re-render, it only takes Jekyll about a second to catch on that something has changed and spit out an updated version. I modified Octopress&rsquo;s isolate workflow a little further by automatically restoring the stashed files when the server is shut down, so there&rsquo;s no need to run <code>isolate</code>&rsquo;s companion <code>integrate</code> task. It also invokes the Webrick preview automatically. So what Octopress does in three commands we can do in one.</p>
<p>An optional extra touch for the whole thing involves the <a href="http://livereload.com">LiveReload</a> browser plugin, which makes it possible to monitor a given URL for changes to the associated file and automatically reload it. So I can stick Safari in my second monitor, make edits in BBEdit, and each time I save the file Jekyll re-renders it and LiveReload updates Safari without me having to reach over and refresh. That&rsquo;s handy.</p>
<p>But really, learning about Octopress&rsquo;s <code>isolate</code> task gave me a small nudge in the direction of just pulling the trigger on using Octopress for real, bringing me to a small list of things I&rsquo;ve got to do to make the 1,865 (1,866 once this post is live) posts work o.k.:</p>
<ol>
<li>Scrubbing as much block-level HTML as makes sense. Mostly that means dropping naked paragraph tags because stuff just goes wrong with them in Markdown parsers. Hey &hellip; it&rsquo;s version controlled, so I can even pass that stuff through kramdown&rsquo;s html-to-Markdown function and see what I get.</li>
<li>Scrubbing a bunch of poorly encoded characters that made their way through the several generations of software and operating systems involved with writing for the site. Fortunately, there are some fairly consistent ones, and BBEdit&rsquo;s project search/replace will work fine for this.</li>
<li>Getting the 301s proper. I wrote just enough Ruby to reassure me that the filenames Jekyll&rsquo;s WordPress extractor created matched the SEF URLs WordPress was using, so it looks like I&rsquo;ll be able to get away with a single 301 built on a regexp instead of some greater number of individual 301s.</li>
<li>Straightening out syntax highlighting: I&rsquo;ve got three or four different kinds of code markup on the blog, and since it isn&rsquo;t even really a &ldquo;code blog,&rdquo; that&rsquo;s sort of sad. I&rsquo;ve got gists, <code>&lt;code&gt;</code> and <code>&lt;pre&gt;</code>, plus one or two false starts with WordPress plugins. Octopress has some plugins to support gists, which I&rsquo;ve come to favor, but I think the more future-thinking approach is to convert non-gist code blocks to Jekyll/Liquid&rsquo;s native method or CodeRay and leave existing gists embedded with JS alone.</li>
<li>Images.</li>
</ol>
<p>Wow. Images. What a mess. The WordPress part of the blog legacy won&rsquo;t be terrible to sort out because they&rsquo;re in consistent places, so no big deal to move them somewhere appropriate and either write a generic redirect or do a BBEdit mass replace. The Movable Type part of the blog&rsquo;s heritage is sort of concerning, because I think I picked some of MT&rsquo;s busier image display options and there&rsquo;ll be some markup to find, parse, consider and rework.</p>
<p>Why&rsquo;s it even matter? Mostly just the reasons for the ongoing trickle of traffic the site sees:</p>
<ol>
<li>org-mode In Your Pocket Is a GNU-Shaped Devil</li>
<li>Put the current Chrome URL in your Safari reading list</li>
<li>Import Mail.app “Notes” Into Evernote</li>
<li>Scripting iWork Numbers ’09 With Appscript</li>
<li>Back to BBEdit with a Unix Accent</li>
<li>Dumping Your Safari History With Ruby (Apple’s Curious Epoch)</li>
<li>Evernote and Repeatable Checklists</li>
</ol>
<p>Those are the posts out of the top 10 for the past year that aren&rsquo;t either the front page or an index page of some kind. Out of the top 20 or more, a small proportion of &ldquo;personal&rdquo; entries creep in. So, I look at the list and think that I&rsquo;m responsible for information people are at least <em>hoping</em> will be useful. If I scope in on the date, the list is made up of pretty much the same items. There isn&rsquo;t a ton of traffic coming through, but it&rsquo;s not nothing. So I&rsquo;d like the information to be accessible and halfway pleasant to look at; and I&rsquo;d like it to continue to be discoverable. Making that effort feels like it&rsquo;s just part of the social contract. Especially since I feel privileged to do the sort of work I do, and that having that privilege is a direct result of other information gardeners keeping up their own plots.</p>
<p>#jekyll #octopress</p>
<p><em><a href="mailto:mike@puddingtime.org?subject=Re%3A%20tentacled%20gardener">Drop a line about this</a>.</em></p>]]></content:encoded>
    </item>
  </channel>
</rss>
