Displaying posts categorized under

Frameworks and Tools

Posts about frameworks like Rails, or tools like ANTLR go in here.

How to start your RSpec / Cucumber / Spork / Watchr test environment with a single command

My Rails 3 test environment consists of RSpec, Cucumber, Spork and Watchr. Additonally I am running rails console and rails server. This means I have to spawn six terminals or on terminal with six tabs. My preferences lean towards the tab solution. I am setting this up just once or maybe twice a day, but [...]

How to ignore changes in git submodules

Recently while setting up my vimfiles for version control I encountered a problem with git submodules. The plugins are included as git submodules and loaded up with pathogen. For those interested in details on how this works, there is a Vimcast available on this topic. Some of the plugins need to generate helptags or other files that [...]

How to extract plain text from HTML with Nokogiri

While working at an upcoming blogpost, I encountered the problem of extracting some plain text from HTML. If I was interested the whole plain text, I could just run html2text in bash and feed it with the HTML, but what I needed was just a specific part of the plain text between two certain comments. [...]

How to embed actions within every match of a one-or-more ( rule+ ) or zero-or-more ( rule* ) rule in ANTLR?

This article shows how to embed and action into an ANTLR grammar, that should be executed for every match of a one-or-more rule ( rule+ ) or a zero-or-more rule ( rule* ).