Ruby

Chef: RVM + Ruby Enterprise Edition as Default Ruby

by Matthias Marschall on September 7, 2010 · 15 comments

The opscode chef bootstrap installs Matz Ruby on the node automatically. There are cookbooks for installing ruby enterprise edition on a node, but they create a separate Ruby “universe” on your box: You will have to be very careful how you install gems to make sure they are used by either the default Ruby or [...]

Rethinking code reuse with Modularity for Ruby

by Matthias Marschall on March 26, 2010 · 2 comments

This is a guest post by our friends over at makandra, a cool Ruby on Rails development shop. Today they announce a great new Ruby gem for dealing with separating concerns in your ActiveRecord models. Reusing code is hard. But although we knew that high-level components don’t work, we found ourselves rewriting similar code again [...]

Super-simple Ruby Subversion Command Line Wrapper

by Matthias Marschall on January 15, 2009 · 2 comments

Like Dan did recently, I was setting up a Subversion repository one year ago. Of course, I also wanted to have regular backups of my Subversion repository. As I was tired of writing bash scripts for such a task, I looked into writing a simple Ruby script for backing up my Subversion repositories. Full and [...]

How to Inflate And Deflate Data in Ruby and PHP

by Matthias Marschall on September 15, 2008 · 1 comment

I had to port the client part of a PHP based client-server program, which received some XML data along with compressed images as binary data. As it cost me some time to inflate the received data in Ruby, I want to share what I found out about deflating and inflating data in Ruby and PHP. [...]