I ran into an issue today installing the ruby mysql gem on a fresh Leopard system with 10.5.1 installed and the MySQL 5 package for Intel installed. This is based on Dan Benjamin’s great work. To keep this easy, here is the low down. What was happening was an issue with it expecting headers for [...]
The MacPorts funding bill is passed. The system goes online on February 20th, 2008. Human decisions are removed from strategic installation. MacPorts begins to learn at a geometric rate. It becomes self-aware at 3:03pm Eastern time, February 21st. In a panic, they try to pull the plug. And, MacPorts installs itself.
Update: Thin, Mongrel and all of the variants have been replaced by a much better solution. The Quick Background First there was Zed’s excellent (and much appreciated) baseline work that establish Mongrel as the front runner in ruby hosting. Something I’ve been using for well over a year in production behind nginx. From that baseline [...]
I was setting up a new server for a client yesterday and was beating my head getting a few gems install.If you are having issues installing the ruby-xslt and ruby-xml gems on linux (I was on CentOS 5.1), make sure the developer libraries of libxml and xslt are installed. I had the rpms installed, but [...]
Make sure you install the latest 1.0.x or 1.1.x release of Mongrel. There is a security hole in the DirHandler that allows read access to the file system. sudo gem install mongrel You should be running at least 1.05 or 1.1.3. Per Zed and others on the mailing list, here are the details: 1) If [...]
I’m working on a project where I need to convert a model attribute on the fly from XML to XHTML. However, when I tried to drop it out using to_json on the object array, it didn’t display! Here’s how you can output an attr_reader method. Here is the info from the model: class Section < [...]
Leopard (OS X 10.5) ships with PHP 5.2.4 (cli) installed along side Apache 2.2.6. However, it’s disabled by default. Here’s how to enable it. Open Terminal and choose your editor (vi, pico or other) and edit the following (sudo required!): /etc/apache2/httpd.conf Then search for the word php.It will find the line LoadModule php5_module libexec/apache2/libphp5.so. Uncomment [...]
Updated: I’ve added info to modify the /etc/profile script to load the path vars for all users. Five Runs has just released an installer for automating the installation process of a full rails stack based on either a development or production environment. Included in the install are: Ruby 1.8.6 Rails 1.2.3 MySQL 5.0 SQLite 3.3 [...]
If you have your domain email hosted with Google, it’s easy to get much better delivery rates using thier servers than those on your webserver. Here’s how to do it using Ruby on Rails.
Make your Mephisto powered site easily spidered by Google, Yahoo and MSN. Enter the sitemap.xml feed.