Quantcast
Channel: Programming – Tekhne
Browsing latest articles
Browse All 15 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.

Data Matters, but So Do Algorithms

I just read this post about the importance of data over applications. It reminded me of a passage from Eric Raymond, in The Cathedral and the Bazaar, where he paraphrased Fred Brooks: Show me your code...

View Article

Image may be NSFW.
Clik here to view.

Rails, Git and Empty Directories

It seems that Git ignores empty directories by default, just like Mercurial. Unfortunately, when you create a new Rails project, you also create empty directories. You can use this bash function (e.g....

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


Documenting Ruby on Rails.

It’s a tricky business criticizing something that was given to you for free (don’t look a gift horse in the mouth, right?). However, if that thing is a tool, and you intend on using it, it isn’t...

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

Voting on Rails Documentation

I was just reading this article and it occurred to me that Rails might benefit from something like this: “Can we stop pretending? Can you just mark everything as Undocumented until you get around to...

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 15 View Live




Latest Images