Skip to content

Tag Archives: Ruby

Prototype Ajax success()

I ran across what I believe to be a bug in Prototype last week. It has to do with the Ajax.Request.success() method which indicates if a given ajax request was successful or not, based on the http status code. I’m currently developing against v1.5.1.1 and in that version of Prototype the success function looks like […]

Beautiful Ruby Code?

STRP has an excellent analysis of Tim Bray’s chapter in Beautiful Code. I can’t believe someone (even of Bray’s stature) has the gall to say stuff like “If you don’t know Ruby, learning it will probably make you a better programmer“. I’ll remind myself to either skip that chapter or read it knowing it is […]

Rails 1.1.5 on Debian

Apparently there is a giant security hole in Rails, which has been fixed. See here for further details on the issue. For me the usual ‘gem install rails’ didn’t work right away on Debian. I got an error that looked something like tbeck@whalespine:~$ sudo gem install rails Config file /home/tbeck/.gemrc does not exist Attempting local […]

Podcast Roundup

Ever since I got the shuffle I’ve been listening to a lot of podcasts. I monitor about 10 or so podcasts in iTunes for interesting episodes but there is a core group of casts that I always make a point to listen to. Here they are for your listening pleasure. Drunk and Retired – This […]

Capistrano and CVS

In the world of Rails, Capistrano is a great tool to automate deployments. I started using it several weeks ago and it makes rolling out new versions of your web app very easy. Installation was as easy as doing ‘gem install capistrano’ and then doing a ‘cap -A’ in my application directory. The only glitch […]

Lighttpd and Debian

Everyone knows that lighttpd is the popular choice for deploying

mkmf.rb on Debian

If you are having trouble installing ruby gems on Debian and getting errors complaining about missing the mkmf.rb file try doing an ‘apt-get install ruby1.8-dev’. That cleared the error up for me.

fcgi gem on Debian

If you are getting errors on Debian while trying to install the fcig ruby bindings, then I may have the solution for you (well it isn’t my solution, I got it from here). The error might look something like this: ERROR: While executing gem … (RuntimeError) ERROR: Failed to build gem native extension. Do the […]

Ruby / Rails / MySQL

The last major step in setting up the new PB was to fix the version of ruby that comes with Tiger, install rails and install mysql. Apparently the version of ruby that Apple shipped with Tiger causes problems when you try to use C extensions. I’m not too sure of the details or how this […]

Mac Notes

A few notes so far: – Fink seems cool. Since it appears to be just a front-end on apt-get and I since come from Debian it all makes sense to me. – Since I’m an emacs guy, I wanted to get that up and running. I installed X11Usr.pkg which for some reason is an optional […]