Quinn's Blog

Written by Quinn Shanahan who lives and works in NYC
Twitter | Github | Instagram

How to fix joystick drift in Unity

May 27, 2022

How did we end up here I’ve decided to add Unity to my long list of unfinished “learn a new thing” projects. This decision was inspired by a…

Writing a C Compiler: Part 1, Lexer

November 20, 2021

As a programmer I enjoy building things. I also like knowing how things work, I figure the two are related. There are a few things that I…

Docker Tips and Tricks

September 07, 2014

Here are a few little things I use on a daily basis while working with docker.

Preventing brute-force attacks on Wordpress's wp-login.php

August 30, 2014

Even if you use a non-standard username and strong password it can still be a burden on your server getting hit with the occasional brute-force attack to Wordpress's login page. Here you can use ModSecurity to limit the number requests and save resources.

Postgresql Array and Hstore Column Reference

April 14, 2014

I've had trouble finding a good reference for hstore and arrays in postgres that includes examples and use-cases so I decided to put together my own here. Hopefully others can get some use out of it. I've also included some examples of how to use with ActiveRecord.

Stubbing Rails request with custom Rack env

April 09, 2014

There are plenty of tools that provide easy ways to do controller testing in rails, but sometimes in can be nice to test against a specifically built rack env when testing a controller or middleware. Here I dig through some Rails internals to figure out some different ways of doing this.

Experiments with Docker

April 04, 2014

Docker is a wonderfully fun tool that makes building things like a PaaS almost trivial. I've documented a brief intro to some of Docker's common cli functions

Custom error pages in Rails

March 30, 2014

I know this has been documented many times, but I felt this was necessary because I am still seeing many more descriptions of the "wrong" way to do this rather than the right way. Hopefully I can help tip the scales a bit on the subject.

Running NGINX in the Foreground

March 26, 2014

If you're planning on using nginx as a frontend to one or more app processes, it can be helpful to setup and test things locally. An easy way to do this is to run nginx in the foreground so you can quickly iterate your config options to see what works.

Specify a local path for a gem in your Gemfile

March 21, 2014

Sometimes it can be nice to develop against a local gem without modifying your Gemfile. Bundler provides a convenient mechanism for this, but it is limited in the scenarios that it will work under. Here I describe a simple approach to get a similar effect.

Fundamentals of git

January 06, 2014

I'm going to document here some basics about git. I think a lot of very skilled developers who use git everyday haven't yet "grocked" the fundamentals of how it works.

faking placeholder from html5 in jquery

October 07, 2010

I just coded up a simple plugin to enable placeholder text for inputs in browsers that don’t support it yet. This isn’t tested thoroughly…

Why I think datamapper is awesome

August 30, 2010

I know Datamapper is probably considered “old news” at this point, which is something I think unfortunate considering its low adoption rate…

Switching wordpress to nginx

August 23, 2010

I just updated my server to use nginx from apache/mod_php because loading wordpress on my tiny slicehost slice was tanking the poor thing…