Category: Computers

The CSSHX App for Mac is seriously handy…

…for SSH’ing into multiple machines at once. It opens a new terminal window for each ssh connection host you provide it in a tiled configuration (By default)

http://www.brock-family.org/gavin/macosx/csshX-pod.html

Simply place it in a function in your .bash_profile with the IPs you want to connect to and voila!

For example :

function ssh-hosts() {

       ~/csshX-master/csshX 10.10.10.1 10.10.10.2 10.10.10.3 10.10.10.4

}

After running “source .bash_profile” for your shell to re-read your .bash_profile, typing “ssh-hosts” will connect to the 4 IPs you provided, open up 4 ssh windows, and a single “master” window for controlling all 4 ssh sessions. Brilliant!

XCode File Comparison Tool (FileMerge.app)

XCode comes with a file comparison tool. It’s pretty basic, but gets the job done. Run the following from a command line to run it :

open /Applications/Xcode.app/Contents/Applications/FileMerge.app

Importing Your iPhoto Library Into Lightroom

I’ve been using iPhoto almost since its creation, so naturally I’ve got a metric buttload of photos in its library. Now that I’m getting more serious about my photography, iPhoto just isn’t going to cut it anymore, especially since it anti-aliases your photos when displayed on an LCD screen. I’m switching to Lightroom. (For $9.99 a month you can subscribe to Adobe Creative Cloud which gives you Photoshop CC and Lightroom. It also includes cloud storage.)

After doing some Googling, I found a couple of ways to import your iPhoto Library into Lightroom, but they all seemed to involve duplicating your “Masters” directory contained within the iPhoto Library package. My laptop’s HD doesn’t have enough room remaining to create a duplicate of all my photos, so I came up with a different solution.

You can’t directly browse inside the iPhoto Library package using Finder, so Lightroom can’t browse there either. You have to create a way for Lightroom to access your photos via the filesystem. In my mind the easiest way was to create a symlink (or “pointer” folder) to the Masters folder in your iPhoto Library.

  1. Open Applications -> Utilities -> Terminal
  2. type “cd Pictures” (minus the quotes)
  3. type “ln -s iPhoto\ Library/Masters/ Pics” (minus the quotes) This creates a “pointer” folder called “Pics” to your iPhoto Library Master folder
  4. Now Lightroom will be able to see the photos in iPhoto if you browse to Pictures\Pics

Note : You don’t have to call the symlink “Pics”, obviously. You can call it whatever you want. As a matter a fact, prior to running that “ln” command, make sure the symlink you’re creating doesn’t have the same name as a file or directory that already exists under the Pictures folder in your Home Directory.

 

Changing Mac OSX SD Card Insertion Behavior

  1. Open the application “Image Capture”
  2. Your device/card will be shown in the left pane
  3. Select it if it isn’t already
  4. At the bottom left of the pane will be a drop-down labeled “Connecting this camera opens:”. (If you don’t see the drop down, click the bottom-left “triangle in a box” button which will display the menu)
  5. Choose from the drop down what application you want to automatically run when your camera/card is connected to your Mac. (If your app isn’t shown, click “Other”
  6. Close Image Capture
  7. From this point on, when you insert an SD or connect your camera, the application you chose will run by default.

XCode Command Line Tools

Need to install the XCode Command Line Tools? This is how you do it…

$ xcode-select --install

Then, follow the screen prompts.

I came across this need when attempting to compile pyOpenSSL. It needed FFI.h can I couldn’t get that without installing the command line tools.