Double Shot #70 4

Posted by Mike
Liquid error: wrong number of arguments (5 for 2)

Posting is going to be irregular for a while, I expect: here’s why

Double Shot #69 0

Posted by Mike
Liquid error: wrong number of arguments (5 for 2)

We’re trying to prep our house to put it on the market. This sucks down a great deal of time, and explains why posting may be spottier than usual for a little bit.

Double Shot #68 1

Posted by Mike
Liquid error: wrong number of arguments (5 for 2)

A few random links for the Fourth of July.

  • Information Card Ruby – Yes, you can now make InfoCard play with Rails, if you must. This will be a good thing for those trying to smuggle Rails into Microsoft shops.
  • Mingle is Now Available – That would be the new agile project management tool from ThoughtWorks, now in an Early Access release.
  • Comatose – Micro-CMS implemented as a Rails plugin, to handle editing of those few semi-static pages that pile up in every application.

Double Shot #67 2

Posted by Mike
Liquid error: wrong number of arguments (5 for 2)

I’m getting to the point where I’m finding more interesting links for my new blog than for my old one. This is a good sign of transition, I think.

Double Shot #66 0

Posted by Mike
Liquid error: wrong number of arguments (5 for 2)

Time to repost another few links for my own reference and yours.

Double Shot #65 1

Posted by Mike
Liquid error: wrong number of arguments (5 for 2)

There are always about a million little fiddly bits to do to get an application out the door, aren’t there?

  • Backing Up Your Mac – Recently-revised article from MacZealots listing some easy alternatives. Doesn’t answer all of my questions but it’s a good starting point.
  • mirRoR Placement – A pure Rails job shop. It’s another sign of the rapid growth of the Rails ecosystem that we’re seeing firms like this pop up.
  • Announcing Multisite Plugin for Rails – Serve multiple domains from a single Rails application by giving each a distinct set of views.

Double Shot #64 0

Posted by Mike
Liquid error: wrong number of arguments (5 for 2)

Woo, starting another consulting job today, without a speck of MS stuff in sight. I feel all vindicated and stuff.

  • iStat Menus – There are about a million different Mac system monitors out there. This one is free and doesn’t take up screen real estate when you don’t want it to.
  • VSS to SVN: Part 3 – This tutorial for source code control switchers continues.
  • Ruby on Rails EC2 ‘Appliance’ – Practically turnkey Rails deployment to the Amazon server cloud. (via Ruby Insie)
  • Sake Bomb – Sake is system-wide Rake. Looks like it still has some warts, but is already useful

Double Shot #63 1

Posted by Mike
Liquid error: wrong number of arguments (5 for 2)

With a second Rails contract about to be signed, I guess I really am a Rails consultant now. How about that?

Double Shot #62

Posted by Mike
Liquid error: wrong number of arguments (5 for 2)

It’s Monday, it’s time for some new links

Double Shot #61

Posted by Mike
Liquid error: wrong number of arguments (5 for 2)

Looks like I may not starve to death this year after all. That would be welcome evidence that the universe is listening to me.

  • “Script.aculo.us – Offline Docs”: http://www.m3nt0r.de/blog/scriptaculous-offline-docs/ – The contents of the Script.aculo.us wiki reformatted as CHM and PDF. (via Thomas Fuchs)
  • Ruby In Steel 1.1 Now Available! – An upgrade for folks working with Rails in the Visual Studio shell on Windows.
  • Google Analytics Plugin – A simple way to hook up Analytics to a Rails application.

Production Rails Setup at RimuHosting

Posted by Mike
Liquid error: wrong number of arguments (5 for 2)

I’ve finished getting my first production Rails server up and running at RimuHosting . I kept reasonably careful notes along the way, and now I’m going to brain-dump them here, in part because I might need them again in the future, and in part because they might help someone else. Of course, there are so many variables that your setup very likely will not be a precise match for my setup, so use with appropriate caution.

We started with a MiroVPS3 (224MB) host with Debian Etch, the Webmin control panel, and RimuHosting’s own basic Rails stack preinstalled. That’s probably overkill for this little app, but the client wanted to be sure of plenty of breathing room. I’m targeting Apache + Mongrel for serving pages because that’s what I’ve been using in development and staging; production is not the time to experiment with a new-to-me server.

  1. ssh root@nn.nn.nn.nn
  2. adduser mike
  3. logout
  4. ssh mike@nn.nn.nn.nn
  5. started mysql via Webmin control panel
  6. changed mysql root user password to DBPassword via Webmin control panel
  7. set up mike as a full admin using sudo by using visudo
  8. sudo adduser appuser
  9. mysql -u root -p
  10. CREATE DATABASE appproduction;
  11. GRANT ALL PRIVILEGES ON appproduction.* TO ‘appuser’@’localhost’ IDENTIFIED BYapppasswordWITH GRANT OPTION;
  12. quit; get out of mysql
  13. used Webmin to set mysql to listen on any
  14. sudo apt-get install libopenssl-ruby1.8 Without this step, recent Rails won’t run properly on Ubuntu or Debian
  15. mkdir /Library
  16. cd /Library
  17. sudo mkdir Rails -p -m 777 I like to keep my Rails apps in /Library/Rails. Your mileage may vary.
  18. changed server info in deploy.rb to point to the production server
  19. (on development machine) cap setup
  20. sudo gem install—include-dependencies mongrel_cluster
  21. (on development machine) cap deploy
  22. cd /Library/Rails/app/current
  23. rake db:migrate RAILS_ENV=production
  24. cd /etc/apache2/sites-enabled
  25. sudo nano 000-default edited this to basically match my staging version
  26. sudo a2enmod proxy_balancer
  27. sudo a2enmod proxy_http
  28. sudo a2enmod rewrite
  29. sudo /etc/init.d/apache2 force-reload
  30. sudo /etc/init.d/apache2 restart
  31. used Webmin control panel to set mysql to start at boot
  32. sudo ln -s /usr/lib/ruby/gems/1.8/gems/mongrel_cluster-0.2.1/resources/mongrel_cluster /etc/init.d/mongrel_cluster
  33. sudo chmod +x /etc/init.d/mongrel_cluster
  34. sudo mkdir /etc/mongrel_cluster
  35. sudo ln -s /Libray/Rails/app/current/config/mongrel_cluster.yml /etc/mongrel_cluster/nrafh.yml
  36. used Webmin to set mongrel_cluster to start at boot time

Double Shot #60

Posted by Mike
Liquid error: wrong number of arguments (5 for 2)

First client Rails app successfully up and running at RimuHosting. I’ll be writing up my notes for future reference soon. Meanwhile, a few links.

  • SimpleLog – A Rails weblog application I hadn’t run across before. By the way, I know my RSS feed for this one is still goofy; I’ll take a look when I’ve got spare cycles. Thanks for your forbearance. (via Same Shirt Every Day)
  • Scripting Second Life with Rational Application Developer- – IBM continues to take Second Life seriously. There are also a bunch of crossover events from this week’s IBM/Rational conference being held in Second Life.
  • JRuby 1.0 – The JRuby team announces full Ruby compatibility. I don’t personally have a whole lot of interest in JRuby (my ambition is to never work in an “enterprise” again), but it’s a nice validation point for the community.
  • Rails Business: Weekly Review #1 – Roundup from one of the mailing lists spawned by this year’s RailsConf.

Double Shot #58

Posted by Mike
Liquid error: wrong number of arguments (5 for 2)

You know, I was worried about “slippery slope” censorship issues 20 years ago in zinedom, and here I am worrying about them again in Second Life. Some things just never change.

Double Shot #57

Posted by Mike
Liquid error: wrong number of arguments (5 for 2)

Ah, a new work week is always full of such promise, isn’t it?

  • “Setting Up Ruby (and Rails) For Ruby In Steel – From Scratch”: http://www.sapphiresteel.com/Setting-Up-Ruby-and-Rails-For-Ruby – Step-by-step guide to one easy way to get going with Rails on Windows.
  • There can be only one, a tale about Ruby, IronRuby, MS and whatnot – There’s a lot of discussion in the Ruby community these days about the potential impact of Microsoft’s forthcoming IronRuby implementation. This is one of the best summaries I’ve seen.

Double Shot #54

Posted by Mike
Liquid error: wrong number of arguments (5 for 2)

In case it hasn’t been blindingly obvious, I’m ready to start talking to folks about Rails contracting. If you’ve got work on the web that needs doing, let’s chat.