Ben Hamilton

Category Archives: How to

Export Evernote Notes to Apple Notes

Larry Salibra has a post on how to move notes from Evernote to Apple iCloud Notes. His Applescript does a fantastic job of this, the only issue I had was that my iCloud account was named differently to ‘iCloud’, all I did to resolve that was to rename my account in Apple Preferences > Accounts […]

Also posted in Productivity | | Tagged , , , | Comments Off on Export Evernote Notes to Apple Notes

Get the Weather From the Command Line

On Mac OS X or Linux (in fact anywhere you get the finger command) you can quickly get the weather. Jared, in our office here, just showed this to me, neato! :) finger brisbane@graph.no I particularly like the one line weather report finger o:brisbane@graph.no To get more info on how to use this, run this […]

Also posted in *nix, Productivity | | Tagged , , | Comments Off on Get the Weather From the Command Line

Find Process to Kill Process

Need to find a process so you can kill it? Find the process first, replace NAMEOFPROCESS with the name or part thereof of the process you’re trying to find: ps -ax | grep NAMEOFPROCESS The first column lists the process id. Then kill the process, replacing PROCESSID with the actual number of the process: kill […]

Also posted in *nix | | Tagged , , | Comments Off on Find Process to Kill Process

Find an IP address in files

Ever been looking for a config file that contains an incorrect IP address? If the IP address you’re looking for is 8.8.8.8 Then this command is for you: find . -type f -exec grep -l 8.8.8.8 {} \; It’ll find all occurrences of 8.8.8.8 that appear in files in the current directory and folders below […]

Also posted in *nix | | Tagged , | Comments Off on Find an IP address in files

How to get Hazel to run rules in subfolders

This article here describes how to get Hazel to run rules in sub folders, very handy. I’m using this to move any screenshots taken on the iPhone out of the photo folder into a separate folder.

| Tagged , , | Comments Off on How to get Hazel to run rules in subfolders

Allow a Checkbox to be Mass Update-able in SugarCRM

Here’s how to enable a checkbox to be updated enmasse. First create a new extvardef.php file containing the following: Then put that file into at the following location /var/www/html/custom/Extension/modules/Module_Name/Ext/Vardefs/ Of course, you’d want to check any existing files in the folder to make sure none of them already deal with that field.

Also posted in SugarCRM | | Tagged , , , | Comments Off on Allow a Checkbox to be Mass Update-able in SugarCRM

Linux Load Averages

For when you’re trying to explain what the load average figure means (which you get from running either top or w from the linux command line) this link will help explain it easily. Easier than spending 10 minutes talking about it.

Also posted in *nix | | Tagged , | Comments Off on Linux Load Averages

Numbering tasks in OmniFocus 2 for Mac OS X

I’m using OmniFocus 2 on my MacBook Pro and wanting to ‘number’ tasks because at the end of each week, I print a PDF of the tasks completed and outstanding for a particular client. Task numbers make it much easier for the client to reconcile the work I’ve done with the lists they use. The problem […]

Also posted in Productivity | | Tagged , , , | 1 Comment

Show hidden files/folders in the File Open dialog box on Mac OSX

I was needing to navigate to a file that was in a ‘hidden’ folder, but the File Open dialog box won’t show the hidden folder. The answer was found here: Press Command, Shift, Period keys together, the hidden folders/files will appear.

| Tagged , , | Comments Off on Show hidden files/folders in the File Open dialog box on Mac OSX

HTML Emails – How to do them well

Great article over at A List Apart: Can Email Be Responsive. If you do HTML email newsletters, you should go read this.

| Tagged , , | Comments Off on HTML Emails – How to do them well

Securely delete files from the command line

Just discovered the srm command on *nix systems. srm will securely delete files, dependant on the switches you give it either one overwrite with random data, 7 passes, or 35 passes. Hat tip to practicallyefficient.com.

Also posted in *nix | | Tagged , | Comments Off on Securely delete files from the command line

Short list of software I’m using

Just a quick post of some software that I use, that I’ve just discussed with Seth (he knows who he is). ClarifyIT – Create quick screenshot based documents and email them easily. Byword – Markdown text editor. OmniOutliner – Easiest outliner I’ve found. Nozbe – great GTD task manager. 1Password – simplify your password management. Timebar – focused working… :) […]

| Tagged , | Comments Off on Short list of software I’m using

How to generate ssh keys on Mac OSX

Good clear description on how to create your own public/private keys for ssh.

| Tagged , , , | Comments Off on How to generate ssh keys on Mac OSX

Sugar Logic bug with a workaround for date fields

A client is recording the expiry dates of staff blue cards in their SugarCRM database. So I used the following sugar logic to show if the blue card has expired or not: ifElse(isBefore(today(),$bluecard_expiry_c),”Current”,”EXPIRED”) However, the problem here is that when a user of SugarCRM is editing the record, there is a known bug that means […]

Also posted in SugarCRM | | Tagged , , | Comments Off on Sugar Logic bug with a workaround for date fields

Activate IFTTT SMS Channel on Optus in Australia

How to activate the SMS channel on IFTTT on the Optus network in Australia. Assuming your mobile number was 0410 123 456. Drop the leading zero = 410 123 456. Add the Australian country code 61 to the front = 61 410 123 456. Add 00 to the front of the number 00 61 410 […]

Also posted in Productivity | | Tagged , , , | Comments Off on Activate IFTTT SMS Channel on Optus in Australia

Screenshot & screencasts on Mac OSX

Back when I worked exclusively on a Windows machine, I loved using Screenpresso for the ease with which it allowed me to do screenshots and screencasts (if you’re still stuck on Windows, go buy it, it’s worth it). But now that I’m on a Mac, what to do? So to start with just press SHIFT–CMD–4 […]

| Tagged , , , , | Comments Off on Screenshot & screencasts on Mac OSX

Setting up Ubuntu Server 12.04 LTS under VMware on Mac OSX

Good set of instructions on how to get Ubuntu Server 12.04 LTS running under VMware Fusion on your Mac OSX machine.

Also posted in *nix | | Tagged , , | Comments Off on Setting up Ubuntu Server 12.04 LTS under VMware on Mac OSX

SugarCRM screen formatting issue

Angel Magaña explains why, and how to fix SugarCRM screen formatting issue. Summary: it’s the cache folder permissions.

| Tagged , | Comments Off on SugarCRM screen formatting issue

How to change drive space on VMware Fusion VM

On occasion you’ll want to change the size of a Virtual Machines hard disk drive. I’m using VMware Fusion, and to do this, you enter the Settings of that VM and under the Hard Disk option you’ll be able to change the drive size. Note that you can’t make changes if the VM has snapshots […]

| Tagged , , | Comments Off on How to change drive space on VMware Fusion VM

How to get Google Chrome to open your pages from your last session

I use Google Chrome as my primary browser on the MacBook. Although I only restart the machine every few weeks I like it to re-open the same tabs that were open last. To do this, in Google Chrome type chrome://settings/ into the address bar and press enter. This loads the Settings page. Then check the Continue where […]

| Tagged , , | Comments Off on How to get Google Chrome to open your pages from your last session