Mike HeaversWeb, Writing, Creative Coding

Recent

Installing MongoDB (and other extensions) on MAMP Pro 3 for Mac

I spent way too many hours last night (this morning? What time is it?) trying to install MongoDB for a site I was building which requires it, and most of the documentation I read (which was super helpful) didn’t quite fix my issues. I’m no systems administrator, so it took a lot of time to stumble through this issue. The solution I finally came to was a conglomeration of a few tutorials I read online, so I’m posting it here in hopes it will help someone else.

If you go into terminal and run

...read more

Displaying tweets on your website using Twitter’s 1.1 API on Middleman with PHP / jQuery

In Twitter’s latest version of its API, you must now authenticate in order to pull tweets. Yes even public ones. Yes, even your own. I recently had to cross the bridge on a site I was building using the static site generator Middleman. And while the final solution was pretty easy to set up, finding that solution took a bit of time, so I figured I’d post my solution here to hopefully save others the trouble. This tutorial is not Middleman specific, but I include that step below.

Middleman is

...read more

Rendering Ruby ERB partials with variables in a loop using Middleman

Middleman is the easiest static site generator I’ve ever used. A one command install, a great boilerplate to get you going, and a solid system of templates, variables, dependency management, helpers, etc covers everything you need for an average front-end focused site. And while Middleman does a lot, it was a bit difficult for me to see how to tie all the various functionality together in order to render partials that had been passed variables, so I thought I’d jot down this tip.

If you have a

...read more

More Tutorials >