Quantcast
Channel: Ruby – Tekhne
Browsing latest articles
Browse All 9 View Live

Image may be NSFW.
Clik here to view.

Whence Array#each_slice()?

I just ran into what looks like a documentation problem in Ruby 1.8.6 (maybe other versions). If you want to use: …you’ll need to: …beforehand. However, the Ruby documentation doesn’t seem to mention...

View Article



Image may be NSFW.
Clik here to view.

Making Ruby work with SELinux on Fedora

The version of Ruby that comes with Fedora 12 is: I wanted to try some things with the latest version of Ruby which is 1.9.1-p376. So, I compiled it and installed it into /usr/local/ruby-1.9.1-p376...

View Article

Image may be NSFW.
Clik here to view.

Making a Sinatra Web Application Work as a CGI

Here’s how I got a Sinatra version 1.0 web application to work via CGI using Rack version 1.1.0 behind an Apache httpd version 2.2.15 web server on Fedora 13 Linux. There are many ways to get a client...

View Article

Rails, Rake, Fixtures, and Accomodating DB Table Constraints

I needed to auto-load test fixtures into my development environment. There’s a nice feature in Rails 1.1.0 where you can run rake db:fixtures:load which does almost everything I want. However, it...

View Article

Rails and Database Table Constraints

As far as I understand, Rails doesn’t provide “adequate” (whatever the definition of that may be) support for database table constraints. As you are probably well aware, it’s part of the design...

View Article


Functional Programming Example: Python vs. Ruby

I was recently reviewing some of the forthcoming changes to Python in version 2.5, and came across a nifty little bit of functional programming. As far as I can tell, there is no direct analog in Ruby,...

View Article
Browsing latest articles
Browse All 9 View Live




Latest Images