My Profile Photo

rubycoloredglasses


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


  1. How to 'head' a text file in Ruby

    I wanted to just view the first 20 lines of a 10,000 line CSV file returned by an API in a Ruby on Rails project I’m working on. Here is the chain of Ruby commands I came up with to effectively ‘head’ the CSV document returned. …


  2. Objective C Notes

    I’m exploring Objective C right now. There are some things that I notice and am curious about, so I’m going to note what I find here. …


  3. Recommended Sublime 3 Packages

    If you haven’t already switched to Vim, and you’re hacking everything out from the command line, you might want to check out Sublime Text 3. Sublime Text is supported for Mac, Ubuntu, and Windows. …


  4. Setting up PostgreSQL for Rails

    I’ve always used either SQLite (the default) with new Rails projects, or I’ve used MySQL because I’ve been using it ever since 2002 when I started doing web development with PHP. Recently however I was challenged with deploying an application to Heroku as part of a code challenge I’m taking part in. Unfortunately, Heroku doesn’t support SQLite, and recommends PostgreSQL. Rather than waste time trying to create a MySQL app and running into problems, I’m going to go the easy route and use PostgreSQL. …


  5. ComputerName: not set

    I recently installed Oh-my-Zsh on a new Macbook Pro running Mountain Lion. When I opened up my terminal, I received the message “ComputerName: not set”. …


  6. Bundler Definitions

    I’m currently starting work on a Ruby gem, ‘annotate_gemfile’, that will grab the title, description, homepage URL, or source URL for every defined gem, and then add them as an annotation / commented for each gem definition in the Gemfile. …


  7. Yard Documentation

    Here are my own notes for using Yard to provide the Ruby API documentation and other notes for your application. …


  8. Exploring Bundler Commands

    You may be used to using ‘bundle install’ or ‘bundle exec’ often, but here are some commands you might have forgotten about or never heard of. …


  9. Paperclip URL and Path

    I’m trying to configure my application so that it stores files in S3 by default when my application is running in the Production Rails environment, with local file storage and a customized file path for development and test environments. Here is my configuration. …


  10. Open Source Ideas

    I’ve become aware of how important it is to provide a portfolio of things to share with prospective employers. Having a Github profile that shows off all the Gists and public repositories you’ve contributed to serves as a perfect portfolio piece. …