Category Mac

Record SSH session on Mac

This applies to recording a SSH session initiated on Mac OS X.

Sometimes it is useful to record your SSH session for debugging purpose and sometimes just to remember exactly what you did when playing around with new technologies on your VPS.

The ‘tee’ command on Mac (and Unix/Linux or course) will route standard input and output through it, and save anything that passes through to a file. So you can pipe any command through ‘tee’ and have your interaction saved to a file. Fabulous.

$ ssh | tee /tmp/output

Very useful.

Solving problems with Automator

I regularly get asked ‘tough’ computer questions. Today a colleague had 3 folders, each with 100 70MB TIFF files, that he wanted to use as a PowerPoint presentation. My office PC (Windows XP, 1GB of RAM, I know, I need to ask for an upgrade!) was ill equipped to deal with the issue and even if it was speedier, I wouldn’t have had anything other than the basic Windows+Office+Visual Studio install.

I initially tried to import the images into PowerPoint as a photo album but that didn’t seem to work as it kept the gigantic resolution and file size of the TIFFs. I had my Macbook with me so I decided to see if automator could be used to complete the necessary tasks.

Automator is a secret weapon that’s installed on everyone’s Mac. It allows you to automate various tasks, move files, take screenshots, convert file formats and access functions from installed software, in this case PowerPoint and Pixelmator.

I hope to see the Automator interface used some day to allow more advanced control over the iPhone and its settings, I think it would serve perfectly as the iPhone equivalent of Android’s Tasker.

The tasks I needed to complete in order were:

  1. Resize the images to a more respectable resolution
  2. Convert the images to the JPEG file format
  3. Insert each image into a PowerPoint presentation

It took me only a few minutes to put together the workflow and the results were perfect.