Integrating Rails And WordPress In a Subdirectory

Do you want to run your Rails app at your domain and then run a WordPress blog in a subdir of the domain so it looks like there is only one application with a blog? I will show you how to do it with Nginx HTTP server.

View Comments

Speeding up Ruby 1.9.2 startup time

How to apply the patch for speeding up the awfully slow startup time of Ruby 1.9.2 scripts. This guide is for Mac OS X Snow Leopard.

View Comments

Why Ruby arithmetic doesn’t work?

I was asked by many people about that. Easy to reproduce, just watch this in Ruby console: > (100 * 9.95).to_i => 994 What the heck, shouldn’t that be 995?

View Comments

Ruby doesn’t know _i2d_ECPKParameters

I tried to install Ruby 1.8.7-p299 on MacbookPro with Mac OS X Leopard 10.5.8. I downloaded the source code from www.ruby-lang.org and compiled the usual way:

View Comments

Find out who doesn’t follow you on Twitter

Do you want to follow only those who follow you back? Do you have Ruby installed? This script prints those followed by you who don’t follow you.

View Comments