Posts tagged ruby

Aug18

MySQL Gem Install Caveats on Red Hat (32/64 bit)

ruby gem mysql ruby19 linux redhat yum | comments

If you’re using redhat, it’s likely you heavily depend on yum to manage your packages. If not, you probably should. Anyhow, I use yum to manage MySQL installation on my RHEL boxes.

Installing MySQL is as easy as:

Continue reading »

Mar28

Playing around with string encoding on Ruby19

ruby19 encoding activeworlds questatlantis multibyte chars | comments

Lately I’ve been working with ActiveWorlds 5.0 SDK, wrapped with ffi running on Ruby 1.9.

Continue reading »

Apr29

Checking named routes in irb console

ruby rails | comments

I tend to use named routes in my link_to, link_to_remote, remote_form_for etc prototype helpers, so that my action paths in the view always conform to the declarations in routes.rb and so it’s expressive.

Continue reading »

Apr14

Self-Referential ActiveRecord

ruby rails active_record | comments

Migrating a legacy bulletin board system based on Perl/CGI to Rails (2.2.2). I am doing this as BDD with cucumber & rspec goodness and I’ll be posting my travails on BDD pretty soon.

Continue reading »

Apr13

Getting up & running with Sinatra (0.9.1.1) on Dreamhost

rack ruby sinatra webapp dreamhost passenger | comments

Since passenger has rack support and since dreamhost supports passenger, I went with a forked scanty blogging app as my du jour.

Continue reading »

Apr10

Syntax highlighting test

ruby code gherkin cucumber | comments

Checking out how well syntax highlighting works

Some ruby

  class Gdakram
    def self.quacks
      "#{self} quack quack"
    end
  end
  Gdakram.quacks

Some gherkin

Continue reading »