My Profile Photo

Josh O'Rourke


Co-founder of Saoirse Media and Escape Plan. Program Lead of Solution Architecture at King's Daughters Health System.


  1. Vim Tip: Handling Long Lines of Text

    When you’re using Vim to read log files or write blog posts, one problem that you may come up against is wrapping long lines of text. Vim, being the powerful editor that it is, can handle this in multiple ways. Today, I’d like to talk about two of those options. One changes the way that text is displayed in the buffer. The other changes the way the text is formatted in the file. …


  2. How to Create Terminal Progress Indicators in Ruby

    When you’re developing a terminal application, it’s usually helpful to indicate the progress of a long running task. Over the years, I’ve done this in a number of ways. Most of them involve printing some kind of status message, such as “Processing file1.csv…” or “Processing 10 of 1,000,000…” etc. …


  3. Vim Tip: Temporary Key Mappings

    One trick that I often use with Vim is temporarily mapping keys for tasks I need to perform in my current context. …


  4. A Brief Introduction to Ruby's Kernel.fork

    Recently, a coworker asked if I could help with manipulating some large CSV files. Each file contained approximately 1.2 million records and was over 200 megabytes in size. I’ve never worked with such large CSV files before, so I had no idea how long they would take to process. …


  5. Vim Tip: How to Use Vertical Guides

    Vertical guides are a feature of most modern text editors that are useful when aligning text. Programmers typically use these to ensure that their code is indented properly or doesn’t exceed a certain line length (typically 80 or 100 characters). …


  6. Parsing Bookmarks With Nokogiri

    I’ve been working on a feature for one of my side projects that requires parsing bookmarks files that have been exported from a web browser. Most browsers export bookmarks in the Netscape Bookmark File Format. This format is an HTML document where the bookmarks are organized according to a standard structure. Microsoft has some helpful documentation MSDN. …


  7. Vim Tip: How to Display Whitespace Characters

    One of the things that took me awhile to figure out when I started using Vim was how to display whitespace characters. Whitespace characters are characters that take up space in a document but are not visible to the user. Examples include spaces, tabs, and new-lines characters. …


  8. Getting Started With Authlogic on Rails 3

    Authlogic is “a clean, simple, and unobtrusive ruby authentication solution”. I’ve used it successfully in several Rails projects. It’s easy to setup, it’s easy to test, it’s flexible, and it has decent documentation. There’s even an example application. …