Euler Pi

A Blog of Tech, Math, and Geek Stuff

Latest Posts

Using Subtitles in HPSTR

So I whipped up this quick modification to Michael Rose’ HPSTR Theme theme to add subtitles to pages and posts. Today I’m going through a brief example of Jekyll’s Liquid syntax, and also touching on SCSS.

Code & Craft

pgrep and pkill: A Better killall?

Just learned a new tool that has somehow escaped me the last 15 years. prep is a simple tool that lets you grep through the names of running processes, returning just the PIDs. pkill takes that a step further, killing the matched processes1. The cool thing is that both support tab-completion under zsh.

  1. A note of warning: pkill will kill processes that match only partially. So pkill Finder will kill Finder and FinderSynExt processes. Be careful! 

Site Updates

Resurrecting this Blog for NaNoWriMo

November is National Novel Writing Month, and I’m taking a novel1 approach to it (ha, get it? Never mind…)

  1. Or apparently not. Just did a quick internet search before posting this, and apparently NaBloPoMo is a thing. A thing that doesn’t roll off the tongue anywhere near as easily as NaNoWriMo. 

Code & Craft

Spellcheck your Markdown in Vim

Vim comes built-in with a spell-checker as powerful as graphical text editors like Sublime and Atom, but it isn’t enabled by default because it generally isn’t handy when writing source code. It can be handy though when writing documentation, blog posts, or other in markdown (or your favorite documentation syntax).

Code & Craft

Improved Image Captions in Octopress

Thanks to Robert Anderson’s Image Caption tag, Octopress blogs have had the option to add captions to images for some time. There were some limitations I wanted to improve upon so I began hacking away, and created a block version that allows Markdown formatting in the caption text. In addition, I enhanced the treatment of alt tags and relative widths.