Removing the whitespace from text files in Sublime

I like Sublime Text, it’s my favourite text editor. Handily available for OSX and Windows. What’s annoying though is when you get given or open a text file that has loads of whitespace at the end of the lines. Aside from messing with my compulsive sense of order, there are cases when extra whitespace can cause problems for some applications. Just in case, there’s a handy configuration option that can strip out trailing whitespace when a file is saved. Here’s how to set it up… Open Sublime’s preferences – in OSX this is done by “cmd + ,” Add the setting “trim_trailing_white_space_on_save” and set it to “true” Save the preferences file Bingo! Whitespace will be trimmed when files are saved in future. Just for clarity, the full setting in a fresh config file looks like this:

Read More

Some other TimeMachine exclusions

In my other post on the topic I excluded my local Mail app files from my TimeMachine backups because they were tripping over McAfee AntiVirus. I thought that it might be sensible to add a few other exclusions to trim down the total amount backed up and reduce the impact of frequent TM backups on my laptop. As you can see, my total backup size is about 380Gb. Included in that are a fair few transient / temporary files that aren’t needed as well as some files that are backed up elsewhere anyway plus a handful of things that maybe I don’t need or want to back up. Caches Really, you want to keep them? I thought not. They include the browser caches for Safari and Firefox amongst other things. Click the “+” button. In the finder window that’s displayed, […]

Read More

Infected email breaking OSX TimeMachine backups

Having been away from home a lot recently, it had been a while since my laptop had been backed up by TimeMachine. After a few attempts though it got a bit annoying as McAfee kept interrupting the process. The problem seemed to be that the backups contained infected emails: McAfee was blocking TM from writing infected emails to the backup drive. As it turns out, I recalled fixing this once before (although I never blogged about it). So how could it have come unpicked? Looking at my TM backup exclusions, the exclusion that I added was still in place: But my whole mail folder should be more than 8KB!… Then it clicked. I hadn’t done a TM backup since updating to OSX El Capitan. After clicking the “+” button to add a new rule, I navigated to my mail folder. […]

Read More

Open Orchestrator JNLP files on OSX

New job. New laptop. But of course it isn’t set up like the old one. It doesn’t have all of the tweaks that I made over the years on it. One annoyance, what with me being a heavy and frequent user of vRealize Orchestrator, is that client.jnlp files downloaded from the vRO web interface don’t have an application association by default. I’m writing this as a quick reference just in case I need it again anytime soon. Having downloaded and saved the client.jnlp file as normal, use the finder app to select the file, right click and select “Open with > Other…”. Browse to this path: /System/Library/CoreServices Select the executable Java-Web-Start.app Tick the “Always Open With” option. Click “Open”. Done!

Read More

Multimon: Software My Chiropractor Made Me Buy

Well, he didn’t exactly do that. The big frown and look of disapproval at the photo I had been instructed to take of my work area told me almost all I needed to know about what he was about to say. I work from home quite often and although I’ve never had a problem with how my desk is arranged etc, it came up when I needed to visit a chiropractor for the first time in my life. He wasn’t too impressed with where my laptop was on my desk and my second screen that I used for my Fusion VM, Twitter and my less used apps. After he explained all of the reasons why, he then proceeded to suggest what I needed to do to remedy the problems that he perceived. I’ve taken his advice and interpreted it in […]

Read More