Showing posts with label Mac OS X. Show all posts
Showing posts with label Mac OS X. Show all posts

Friday, August 9, 2013

Fixing Coda 2 Connection issues

I often rely on a satellite internet connection. Those connections make life with Coda difficult. Often files aren't transferred over SFTP. The timeout is epic and it makes life really difficult.

To get around this problem I gave up on Coda's embedded SFTP client. Instead I've mounted the remote server through SSHFS. So far I didn't run into the same problems and files are transferred reliably.

SSHFS can be installed on pretty much any UNIX OS. I personally use it within a Linux VM since the local project files are in there as well. However there's no need for that. You can install SSHFS on your Mac as well.

Binary versions are available from the osxfuse project. To be honest I didn't try them but that may be the way to go if you don't want to install a portage on your Mac.

I on the other hand couldn't live without MacPorts. If you have it installed, just install the

sshfs
port. Once installed you can easily mount your remote website using a command like this:

sshfs username@remote.tld:/var/www/ /Users/arthur/mymountpoint/

To optimise the process I suggest you're using SSH keys instead of passwords. That way it's not only more secure but also much more comfortable. Hint: those keys work with Coda as well.

Thursday, August 8, 2013

Limit Apple Mail to 80 Chars

Using Apple Mail I occasionally receive complaints, mainly from Linux users, that I should limit the length of a line to 80 characters. The only problem, Apple Mail doesn't support this!

It's no problem doing this in pretty much any other email client. So switching from Apple Mail to something like Thunderbird or Opera Mail may be an option. But I actually like Apple Mail so, that's not really an idea I'd like to go with.

Luckily I found this thread on the Apple Support forum that explains how to use Automator to partially get around this problem.

The answer by "Scott Atchley" really works quite well. What he does there is simply to create a new Service in Automator. It takes selected text from the Mail application, sends it through the "fmt" command and replaces the original.

I've created the workflow and put it on my Google Drive for you to download.

Or if you'd like to create it yourself, here's a screenshot of how this simple service looks on my Mac:

Once created and put into the

~/Library/Services/
directory it shows up in your keyboard shortcut menu. Create a shortcut of your liking.

Once the shortcut is set, restart Apple Mail and try it out. Select the text you'd like to transform and hit your shortcut.

Even so this solution works it's but a dirty hack. Apple should really add that feature to Apple Mail. I really hope that they get over this "consumer" idiocy and once again respect their pro users, many of which are veterans using macs since the early 90s or even earlier.

Monday, July 8, 2013

The Mac Effect

Macs and I have a very special relationship dating back to my early computer days. In fact the first computer I've ever used was a Mac, the first one I owned too. Needless to say that in the meantime a lot has happened.

I too used (and hated) Windows. Linux was a logical step on the way, the BSDs followed. For a long time I didn't have a Mac. Yet still the desire for having one never stopped burning within me.

These days I use pretty much any OS. Linux still occupies a massive part of my life in IT but it lacks a little thing I call the Mac effect.

A modern Linux desktop provides everything you need. Graphical file managers, menus, desktop backgrounds, widgets and most of all pretty terminals. But thats just it, it's all you need.

Mac OS on the other hand provides all that and that little extra that puts a smile on my face. For example, I like the notes app in Mac OS 10.8. I didn't use it for a while now but still it keeps notes in a way I like to work with them.

I wanted to call my internet provider. In my mind I went through all the steps I'd need to take. First, find their telephone number, second dig up my customer id, third check their offerings for discounts. All of that would have taken me around 10 minutes.

Then I typed my providers name into the spotlight search and an old note came up. Within seconds I had all the information I needed. I called them, conducted my business with them and in a whole that didn't take five minutes.

And thats just it. Of course I can keep notes on a Linux Desktop, but would I ever find them again? No, not me. And thats why I love using Macs so much. Hardly a day goes by without some little detail making me smile.