about photos bookshelf portfolio blog home
Begin main content

ruby-doc.org is down!

It sure is going to be hard to learn ruby and rails (from scratch) plus rewrite a client's website in one night without documenation! I have emailed the admin, hopefully he is in a different timezone and will be up soon :)

11:38 PM, 01 Feb 2006 by Mark Aufflick Permalink | Comments (0)

Web file uploading the EASY way

Yes why, Ruby is indeed poignant. Uploading files with cgi/perl/mason/aolserver is a pain in the butt. With ruby, it's:

def upload_customers
file_content = @params["customers_prn_file"].read
end

It's almost too easy!

10:37 PM, 01 Feb 2006 by Mark Aufflick Permalink | Comments (3)

Getting Ruby on Rails up on Mac OS X

So to add some spice, I'm not even going to use my trusty Linux workstations (yes, I have two) - It's my lovely shiny Powerbook all the way baby.

Here's all it took:

  1. Have Darwinports already installed (you know you should)
  2. install a reasonable version of ruby sudo port install ruby
    wait a while
  3. install MySQL (I told you we all need some grit) sudo port install mysql4
    wait another while
    Well, that was the plan, but the port is refusing to compile, so I have used a MacOS X mysql package
  4. install ruby gems sudo port install rb-rubygems
  5. install the mysql ruby driver sudo gem install mysql -- --with-mysql-dir=/opt (or supply /usr/local/mysql if you are using the package installed mysql like me)
  6. install rails sudo gem install rails --include-dependencies

MacOS X has an older version of ruby installed, so make sure that your path has /opt/bin first, so that you get to use the Darwinports version first.

I thought I would *really* get into the whole Rails vibe and I started downloading the TextMate demo. But thankfully it's a sizeably package and during the download I came to my senses and kept using GNU Emacs under X11.

For the pleasure of emacs users out there, here are the ruby related portions of my .emacs (which could do with some tweaking I'm sure) can be found in my cvs repository: http://cvs.pumptheory.com/viewcvs/viewcvs.cgi/etc/ You can get the .el files from the ruby cvs repository http://www.ruby-lang.org/cgi-bin/cvsweb.cgi/ruby/misc/

07:21 PM, 01 Feb 2006 by Mark Aufflick Permalink | Comments (0)

Ruby on Rails to the Rescue!! (Or to my demise... we shall see)

Well, I've played around before, but always retreated to my trusty friends Postgres, OpenACS and Perl.

Ok, so I also have to deal with Sybase, but everyone needs a little grit in their life (otherwise we wouldn't appreciate the pearls!)

But I need to finally release some code that's been stewing in my CVS for 10 months and I don't like how I did it. So I'm going to rewrite the whole stinking thing in Ruby on Rails tonight. You heard me - in one night.

I'll keep you posted :)

06:59 PM, 01 Feb 2006 by Mark Aufflick Permalink | Comments (0)

XML

Blog Categories

software (4)
  ..heads up 'tunes (4)

Notifications

Icon of Envelope Request notifications

Syndication Feed

XML

Recent Comments

  1. Mark Aufflick: all good ideas
  2. Unregistered Visitor: Excellent!
  3. Mark Aufflick: Hey thanks
  4. Unregistered Visitor: Fantastic entry
  5. Mark Aufflick: Bah - dashboard widgets
  6. Unregistered Visitor: Nice
  7. Mark Aufflick: elegant maths (as opposed to elegant rabbit)
  8. Unregistered Visitor: Does that really matter?
  9. Mark Aufflick: Inspiration
  10. Unregistered Visitor: Perhaps...