Euler Pi


A Blog of Tech, Math, and Geek Stuff

Latest Posts

Filed under: Code & Craft

Jekyll Inline Conditionals With Liquid Filters

Often times when writing Jekyll templates, we need to do some conditional matching on certain blocks of text, returning one value in one instance, and a different value in another instance. Many times only a small portion needs to be changed, such as the name of a class, or inserting a default value when a variable is nil.


Filed under: Site Updates

Reboot 3.0

I’ve been working on this new Jekyll theme for the last few months, starting with Start Bootstrap’s “Bootstrap Clean” as a base and incorporating elements such as “Resume Cards”, more advanced blog and Jekyll features, typographic elements such as a consistent baseline and modular scale, and stylistic elements inspired by several popular news websites.


Filed under: Code & Craft

Getting Started With Docker

Speak to anybody working in DevOps today, and Docker will be one of the hot topics of interest. At its core, Docker is a modular, layered approach to vitalization that runs on top of a host system’s kernel while keeping guest processes and filesystems separated.


Global Reference Style Links in Jekyll

Now that I’m starting to blog more frequently1, I’ve found myself wanting to link to common websites in my writing often. But looking up exact URLs and page titles (because I’m a perfectionist and I want the link title to match the page title) breaks me out of my writing pace. Having a common library of Markdown reference-style links would speed up my writing, reduce errors, and make me more likely to link where appropriate.

  1. Though I haven’t kept the post-a-day rate I thought I could at the beginning of the month. 


Efficiently Counting Records in Rails

As a junior Rails developer, I’ve been analyzing some of the anti-patterns I and other junior developers have fallen into. One of the most common has been the misuse of .all in ActiveRecord, particularly when counting database records.