Access Local Mac Dev Environment from VM

Testing my web development in IE is the bane of my existence. Since I run Apache and MYSQL on my local host on my Mac it was always a trick to view my work though my Windows VM until my friend Mike Farmer showed me an easy way to access my development environment on my Mac from my virtual machine.

Steps:

  1. Get default gateway of VM machine
  2. Use that address the same way you would “localhost” on your Mac

Example:

Get IP address of VM

Get IP address of VM

Local Mac development environment

Local Mac development environment

Dev environment from VM

Dev environment from VM

Tail Multiple Files

How to tail multiple files

Terminal command: tail -f <file.name> <file.name>

Tail Three Files

Tail Three Files

Tail Two Files

Tail Two Files

Tailing multiple files in one terminal window is a life saver when you are pressed for space on your screen.
With tail you can tail just about as many files as you want. I doubt it would be very useful to have more than a few tailed at the same time.

Leave a quick comment if you found this helpful or have other helpful suggestions like this one.

Install 64 bit Ruby On Rails and MySQL on OS X

because it's fast!

For a project that I am starting I wanted to use Rails and MySQL so I decided to install for source that I compile myself for both. It was amazingly easy and satisfying to have both compiled and installed on my machine for development. Hivelogic has some really simple easy to follow blog posts on how to do both. If you are wanting to compile and install either Rails or MySQL on your Mac from source code then I recommend you check them out.

Installing MySQL on Snow Leopard

Installing Ruby, RubyGems, and Rails on Snow Leopard

Ruby On Rails

Bike photo by piston9 / CC BY 2.0

Key Based Authentication for SSH

What is key based authentication for ssh?

keyKey based authentication for SSH is a way to connect remotely to another computer/server using an encrypted file you HAVE and an optional password you KNOW to unlock the file. Key based authentication has the advantage of being more secure and/or more convenient.

Why?

Password based authentication:
Logging in via password over SSH encrypts your password so it ends up looking like this:
..t-:p.%.E.{..E..X7.@.@.~....s..............NXP...{W..!8..;.eh9..N......#....q..1f...:...D9R0 zy
Because the password is encrypted, it won’t be seen in plain text over the wire which is good. If the password is short or simple enough, a hacker will be able to crack your password. Assuming the password is good enough, password based authentication’s strength comes from keeping that knowledge from others.

Key based authentication allows you to connect remotely using an encrypted file as a key instead of a password. Key based authentication gives you the option to continue reading the rest of the article…