My Profile Photo

rubycoloredglasses


I'm Jason, a web applications developer in the San Francisco Bay area.


  1. Detecting if WebMock is enabled for Net::HTTP

    I ran into an issue where we were mocking HTTP responses 400+ in our Rspec tests, which resulted in our application logging an error and a stack trace. When we expect errors because we’re using WebMock to emulate an HTTP 500 response, logging the stack trace involved can be too verbose. …


  2. Static Hosting with Neocities

    I’ve been using a Wordpress site for my blog for years, but that has become cumbersome, especially when you have to deal with your website being exploited due to holes in one of the many plugins that your site is relying on. …


  3. Intro to Tmux

    Recently I learned a few of the basic commands needed to use the GNU screen command to keep a command line session running even after I’ve disconnected from a remote VPS. I learned this specifically so that I could keep irssi running and logged into a specific IRC channel, so I could return to the session and view the history of messages that I had missed. …


  4. Unbricking TP-Link TL-WDR4300

    I tried to flash the TP-Link TL-WDR4300 router with a custom OpenWRT image recently, and after doing so I was unable to connect to the device like I expected. …


  5. Getting Started with IRSSI

    Often open source projects or organizations use an IRC channel on FreeNode to provide support to users and/or developers. I’m trying to retain familiarity with the command line, rather than become completely dependent on GUI applications, so I’ve decided to use IRSSI instead of Pidgin or Adium (Mac OS X). …


  6. Recommended Gems

    Here are some Gems we recommend that you checkout. …


  7. Looping through dictionaries in jinja2 templates

    I am adding a script to our server using Ansible. The roles are all setup to support multiple Wordpress websites based on the dictionary defined in ansible/group_vars/wordpress_sites.yml, as my Ansible configuration is based on Trellis. …


  8. Vagrant SSH Failure - Connection closed by remote host

    I recently was running into issues with Vagrant where I’d start the virtual machine using the ‘vagrant up’ command, but I’d receive an error when trying to use vagrant ssh. …


  9. Error when building PhantomJS 2.0

    I was tasked with installing PhantomJS 2.0 on an Ubuntu 14.04 VPS running with 2 GB of RAM. Online discussions on Github and Google Groups seemed to have pointed to the build process requiring much RAM to complete without error. …


  10. Setup Environment for Django Development

    Although this website is primarily devoted to Ruby / Rails development, I’ve found it necessary to learn Python for a new position I might take in the upcoming year. Here is my guide for setting up your local workstation for Python / Django development on a Mac OS X workstation. …