Installing Ruby on Rails 3.1 on Mac OS X 10.6 Notes

My notes for installing Ruby on Rails on 3.1 on Mac OS X 10.6.  This is not a tutorial or a how-to, just the notes I took as I tried to get Ruby on Rails up and running.

Rails + Mac

1) By default Ruby 1.8.7 is installed on the Mac and I’ve installed X-Code 4.

2) Surf the web a bit and find this website that talks about Mac Ports.  Download and install Mac Ports.

3) In a terminal install ruby via the ports by doing:

sudo port install ruby19

5) Ruby 1.8.7 is still installed and is still the default.  Read on how to change that and find out about RVM.  Try RVM instead of MacPorts.  First remove Ruby 1.9.2 installed by MacPorts:

sudo port uninstall ruby19

Then uninstall MacPorts.  More details here.

sudo port –f uninstall installed

You can also do some clean-up by running the following:

sudo rm -rf
/opt/local /Applications/DarwinPorts
/Applications/MacPorts
/Library/LaunchDaemons/org.macports.*
/Library/Receipts/DarwinPorts*.pkg
/Library/Receipts/MacPorts*.pkg
/Library/StartupItems/DarwinPortsStartup
/Library/Tcl/darwinports1.0
/Library/Tcl/macports1.0
~/.macports

5) Install RVM.

bash << (curl -s href="https://rvm.beginrescueend.com/install/rvm">https://rvm.beginrescueend.com/install/rvm)

Then update your bash profile:

echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM function' >> ~/.bash_profile

Now if you open a new terminal window you should be able to type in RVM and get something.

6) Install Ruby 1.9.2:

rvm install 1.9.2

7)      Then make ruby 1.9.2 the default ruby to use:

rvm use 1.9.2</pre>
ruby –v

The last command ruby –v should now say 1.9.2.

8)      Gems should be installed already.  Update it to the latest version

gem update --system

9)      Install Ruby on Rails using Ruby Gems:

gem install rails
Posted in Notes | Tagged , | Comments Off on Installing Ruby on Rails 3.1 on Mac OS X 10.6 Notes

New Version of Mini-Compressor Released

We’ve just released a new version of Mini-Compressor that fixes an annoying install bug.  As usual you can download the new version via the Downloads page.

More information about the release can be found here.

Posted in Uncategorized | Comments Off on New Version of Mini-Compressor Released

Official Business

On our recent trip to Boston for the Business of Software Conference, we took a side trip to the Hallowe’en capital of America – Salem, MA.  There we saw a real piece of clever marketing, a real noble claim.  We saw the storefront of the Official Witch of Salem!  Imagine that!  It opened my eyes to the possibilities.  Saturday Morning Productions, the official business of the basement!  Mini-Compressor, the official compressor of photos!  Chris and Ada, your official Get Stuff Done team!

Posted in Uncategorized | Comments Off on Official Business

Blogging, facebooking, tweeting, oh my

When music videos first came out, I think music* stars thought this would be a clever way to market their music – you know, appeal to the visual learners.  I don’t think they thought it would essentially quadruple their workload – learning ‘acting’ parts/dance moves – not to mention hiring of directors, writers, models, dancers.

While we don’t make any music videos at Saturday MP, I can’t help but relate to this model and blame the Internet for making us more work.  Sure, we sell Mini-Compressor on the Internet.  We market on the Internet.  We look up movie times on the Internet.  We love the Internet.  It has made us money, but it has made us more work too.

It’s no longer good enough for us to have an awesome software product.  Now we have to deal with SEO (I thought that was CEO spelled funny) and AdWords.  Not to mention blogging semi-regularly so visitors to our site don’t think we’re defunct.  And don’t get me started on FaceBook and Twitter.

Think about the last time you hunted for a plumber.  If it didn’t have e-mail, a website and fancy graphics, did you automatically discount it as not a good plumber and went to the next guy?  How about restaurant?  Same thing?  No menu online?  Skip it.

There’s so much pressure!

If you’ve come here to check out Mini-Compressor, here’s the final word.  It’s a great product.  We love it.  We use it.  Tell a friend!

If you’ve come here to check out Chris or Ada, we’re legit too.

Thanks for paying attention.

* pop, rock, rap, whatevah

Posted in Business Side, Fun | Tagged , , , , | Comments Off on Blogging, facebooking, tweeting, oh my

Developper’s Hours

There’s a barber shop in our neighbourhood.  He’s recently cut his hours.  I’ve never met him before but I imagine he’s near retirement and would like to spend his hard earned money on trips and precious time with the grandkids.  I kinda imagine him to be like the Wealthy Barber.  Anyway.  He cut his hours.  He’s only open limited hours 4 days a week.  Ironically, his shop is next to a former bank.  I got a few laughs when I told Chris it would be funny if we could get pictures of the new barber’s hours next to the bank’s hours.

Here at Saturday MP, we don’t keep banker’s (or barber’s) hours.  Being a developper, Chris naturally gravitates to odd hours.  And odd habits.  Plus, he’s an early riser.  Me?  I’m a night owl.  My productivity is highest in the mid-afternoon, around the time Adorable Daughter gets off school, or near home time if I was in a traditional office setting.  Doh!  Chris tries to take an after-lunch nap whenever he can.  And, when it comes down to it, if there’s a deadline or something pressing, we’ll put in late hours.  And, who can forgot our namesake?  Saturday Mornings!

Posted in Business Side, Fun, Software Development | Tagged , , | Comments Off on Developper’s Hours

Moving Pains

Yesterday, September 28, we physically relocated our website in cyberspace. My apologies if you had trouble viewing the website yesterday during the move. We ran into some trouble with setting up our forwarding address and some people got sent to the non-existent old website address. Everything should be sorted out by now but if you are still having trouble viewing the site please let us know at support@saturdaymp.com.

Posted in Support | Comments Off on Moving Pains

Preferred Methods of Payment

Let’s get this straight.  If anyone wants to give us money, we’ll gladly take it.  We’d be even happier if it was money for the sale of Mini-Compressor, but we’re not too picky.

We currently accept payment through all major credit cards as well as Paypal, though an account is not required.   We’ve toyed with alternative ideas.  And by alternative, we really mean alternative.  Like, big fat novelty cheques:

Novelty Cheque

It's signed, it's good!

Or a cloth bag with a dollar sign on it:

Bag with Dollar Sign

Re-usable Bag

Posted in Fun | Tagged , | Comments Off on Preferred Methods of Payment

Share a Keyboard Between a PC and a MacBook

I’ve been developing the Saturday MP website, which was developed using Ruby on Rails, on Windows using Rad Rails.  Unfortunately developing on Ruby on Rails on Windows has a couple drawbacks:

  1. It’s hard to install Ruby and/or Rails on Windows.  It’s getting easier with the Ruby Installer but still a pain.
  2. The production environment is Linux which can make it hard to debug a problem that only appears in one environment

I’ve started migrating my development envrionment to a MacBook Pro which is Linux based and then I can try TextMate which I hear so much about.  I hear a lot about TextMate.  Like I mean a lot.  Hopefully it will live up to my expectations and also cure cancer.

The main problem I have with moving my development environment to the Mac is physically interacting with the Mac via the keyboard and mouse.  There is no comfortable way to position the MacBook on my desk and type on it for long periods of time.  What I would really like to do is use my existing desktop keyboard and mouse with my MacBook.

The first thing I tried was setting up VNC.  Mac OS X comes with a VNC server by default, all you need to do is turn it on via System Preferences–>Sharing.  Then pick Screen Sharing.  Once that is done I installed a VNC client on Windows such as Ultra VNC or Tight VNC.

While VNC worked it wasn’t quite optimal.  It’s hard to position my MacBook for typing there is room for it to act as an extra monitor.  It would be nice to have my desktop monitors as well as my MacBook “monitor” all running at the same time.  Also VNC doesn’t scale well from my wide screen hi-res laptop display to my not-as-wide-screen-hi-res desktop monitors.

Next I looked at KVM switches but they are expensive and you still need to reach out and click a button to switch between computers.  I’d much rather have VNC where I can switch between computers with the click of mouse rather then a physical click.

Finally I stumbled upon Synergy which lets you share one keyboard and mouse between multiple computers with different operating systems.  Synergy works by declaring one computer as your main/server computer where the mouse and keyboard are connected and several remote/client computers that will share the mouse and keyboard.

Below are the steps I took to get Synergy working with my computers.  It closely follows the steps outlined in this handy Synergy 1.4 guide.  For reference I’m running Windows 7 64-bit and Mac OS X 10.6.

1) Download and install Synergy to my Windows desktop.

2) Windows will be the Synergy server.  If you are using Windows 7 you might need to run Synergy as Administrator by right-clicking on the Synergy Start Menu item and choosing Run as Administrator.  This is so we can install it as a Windows Service later.

Click the Server checkbox as shown below.  Then click the Configure Server… button.

Synergy Server Main

3) At first the Server Configuration screen will just have one computer listed but in our case we want to add our MacBook.  Add the MacBook by clicking on the monitor on the top right and drag it into the gird.

Synergy Server Config

4) Now configure each monitor by double clicking on them and setting them up as shown below.  Don’t forget that Macs like to put “.local” at the end of the computer name.  So if your MacBook is called MyApple its network name will be MyApple.local.

Synergy Server Config Left

Synergy Server Config Right

5) Now run Synergy as a Windows Service.  Do this by going back to the main Synergy screen and choose Edit–>Services from the menu.  Then click Install.

Synergy Server Service

If you get the following error then you need to run Synergy as Administrator.

Synergy Server Service Access Denied

6) To run Synergy open up the Windows Services, as admin if needed, and start the service.

7) Now the tricky part, setting up the Mac client.  There is no nice installer. You have to manually copy some files around.  First download synergy for the Mac.  Then copy the binarys to the bin folder and set them up to run the following commands:

sudo cp synergy* /usr/bin
sudo chown root /usr/bin/synergy*
sudo chmod 777 /usr/bin/synergy*

8) Install QSynergy for the Mac.  The previous step just installed the Synergy command line tools.  QSenergy is a nice user interface so you don’t have to muck around with config files.

To install drag the QSenergy folder from the Downloads folder to the Application folder.  Then double click on the QSenergy icon to run it.

9) Setup QSenergy as shown below then click Start.

QSenergyNow you should be able to move your mouse between the two computers.  To disable keyboard sharing right click on the Synergy icon in the notification area and choose Quit.

P.S. – The Windows key, the key with the wavy flag thingy, becomes the Mac’s Command key.

P.P.S. – When playing a game, especially a full screen game, turn off Synergy otherwise your mouse might leave the full screen game to your Mac.  Not good during multiplayer games.

P.P.P.S. – Make sure you ask Ada’s permission before you use her cordless mouse.

Posted in Network | Tagged , , | Comments Off on Share a Keyboard Between a PC and a MacBook

Don’t Mix your Static and DHCP Addresses

No Internet AccessI was working on some new servers that were soon going to be production servers.  While working on them I noticed that they didn’t have static IP addresses.  Being the good looking proactive guy that I am I sent a quick e-mail to the IT department offering to change the servers to static IPs myself since I was already working on them.  Once I got the OK I changed all the servers to static IPs.   The problem was I changed the servers to the static version of the IP address DHCP had given them.  For example, if the server had been given a DHCP address of 192.168.25.75 I set the static IP to the same thing.

I may be good looking and proactive but I’m not very smart when it comes to networks.  Every once in a while the static IP I had assigned the server would also get assigned to a new computer connecting the to the network.  Having 2 computers with the same IP address is a bad thing and can cause all sorts of issues.  In this case it was most noticeable when someone, like me, tried to VPN.  The VPN would work but I couldn’t see anything else on the network.

It took almost two weeks for me and the IT department to figure out the VPN problem which turned out to be two computers with the same IP problem.  A problem which I created.  If you ever ask me what my network skills are like my answer will be “good enough to be dangerous to myself and others.”

Posted in Network | Tagged | Comments Off on Don’t Mix your Static and DHCP Addresses

Mini-Compress Weeds

“W” was the letter of the week in Darling Daughter’s class a few weeks ago.  You know what I wished?  That Mini-Compressor would compress the wascally weeds in our Behemoth Garden.  Right-click on behemoth weeds and voila… smaller weed no long takes over space where the strawberries are and I can dig it out easier.  Nice, right?

Posted in Fun, Kids Thinking Outside the Box | Tagged , | Comments Off on Mini-Compress Weeds