Custom Icon for Terminal-Notification

First posted: 3.11.2013 under IT – Last modified: 3.11.2013 at 3:44 am

Will all my automation scripts I needed an easy way to monotor their status. One solution is to create a status script which output some test which is display on my desktop using GeekTool. Although I hace being disturbed by system notifications, I don’t mind them if they are from me telling my my webserver […]

CrashPlan on Mac OS 10.9 Mavericks with Java 7

First posted: 31.10.2013 under IT – Last modified: 20.1.2014 at 10:01 pm

Although the current version of CrashPlan is Java 1.7 (Java 7) compatible when you first launch it on a clean install of Mavericks is still prompts you to install Java 6 from Apple. This kind of defeats the object of saying it is Java 1.7 compatible! Although others have worked out how to use Java […]

Clean Install Mac OS 10.9 Mavericks from SD card to Fusion Drive

First posted: 31.10.2013 under IT – Last modified: 31.10.2013 at 5:07 am

After having some issues after upgrading to Mavericks I have decided to clean install all my systems. I needed to clean install Mavericks on my iMac. In fact this is the second clean install, unfortunatly after the first one I cut a few corners an partitioned my Fusion drive and lead to a very unstable […]

Clean Install Mac OS 10.9 Mavericks from HDD Partition to SSD

First posted: 29.10.2013 under IT – Last modified: 31.10.2013 at 5:07 am

After having some issues after upgrading to Mavericks I have decided to clean install all my systems. I needed to clean install Mavericks on my old laptop but would be too slow to use USB. Also could not be bother to connect external harddisk. The solution, create a second partion and use as setup as […]

PHP 5.5.5 on Mavericks + Server.app

First posted: 26.10.2013 under IT – Last modified: 27.10.2013 at 12:00 am

Mac OS 10.9 Mavericks ships with PHP 5.4.17 under /usr/bin. If you want to upgrade or add other precompiled modules then the easies solution it to install the liip release using the very simple command: curl -s http://php-osx.liip.ch/install.sh | bash -s 5.5 The script also configures Apache to use the new install by adding this […]

Simple curl to PHP file upload

First posted: 30.6.2013 under IT – Last modified: 30.6.2013 at 12:39 pm

I need to view a log file from work but don’t have SSH access to work without VPN and from work due to IP/port filter. However, HTTP does work so though I would give HTTP POST a go via PHP and CURL. Took a bit of playing around but in the end is quite simple. […]

Photomatix presets & Aperture

First posted: 9.1.2013 under IT – Last modified: 9.1.2013 at 6:49 pm

Due to Aperture running in a sandbox in OS 10.8 the Photomatix presets of the standalone application are not easily accessible from within the Photomatix plugin. This can be solved by creating a link into the Aperture sandbox. The standalone Photomatix Pro application stores its presets here: ~/Library/Application Support/Photomatix/Presets/ The Photomatix Aperture plugin stores its […]

UNIX commands

First posted: 9.1.2013 under IT – Last modified: 7.4.2016 at 8:58 pm

A short list of my most used shell commands: Manual man man cd man ls man man echo Fileing ls cd ls a* ls -a ls -al ls -hlog cp mv ln ln -s touch Ownership & permissions ls -l chown sudo chown chmod chmod 777 chmod 755 Reading & Editing files cat head head […]

Xcode and 10.8

First posted: 28.7.2012 under IT – Last modified: 28.7.2012 at 12:17 am

When trying to install Xcode on OS 10.8 gave me an error stating OS was too new. Problem can be solved by clearing the preferences and caches of the MacAppStore.app using these commands: rm ~/Library/Preferences/com.apple.appstore.plist rm -r ~/Library/Saved\ Application\ State/com.apple.appstore.savedState rm -r ~/Library/Caches/com.apple.appstore rm -r /private/var/folders/*/*/*/com.apple.appstore

Mail rules, signatures and smart mailbox sync in OS 10.8

First posted: 20.7.2012 under IT – Last modified: 31.10.2013 at 10:01 pm

In my attempt to create a workaround for the lost sync features of MobileMe in iCloud I found out that syncing is now done by Mail.app and OS 10.8! On my new MacBookPro I did a clean install and entered only my iCloud login and pass during the install process. Thus when first launched Mail […]

Restoring MobileMe sync functionality with iCloud in OS 10.8

First posted: 20.7.2012 under IT – Last modified: 19.8.2012 at 3:05 pm

When MobileMe was replaced by iCloud a number of syncing options were removed. These all appear to be based on the sync agent approach. According to Apple the syncing of the following items will no longer be supported in iCloud: Dashboard Widgets Dock Items Keychain Mail Accounts Mail Rules, Signatures, and Smart Mailboxes Mac OS […]

Unison file synchronisation in Mac OS X

First posted: 18.7.2012 under Automation, IT – Last modified: 20.7.2012 at 10:07 pm

Currently I use Unison over SSH to sync my documents and some specific system files. I have been using Unison for over seven years and it’s great. Unison works a bit like rsync in that although initial sync may take a long time afterwards only differences are transfered. Conflict resolution is handled well with the […]

SSH public key authentication

First posted: 16.7.2012 under IT – Last modified: 1.11.2013 at 12:17 pm

SSH public key authentication is used to establish ssh connection without the need to type a password. The details have be covered very well by many many other people like this. This post is just to remind me how to do it! This process will allow the establishment of an SSH connection from client to […]

Time Machine and OS 10.8

First posted: 16.7.2012 under IT – Last modified: 21.7.2012 at 10:56 pm

New laptop, new OS so time to create a new size-limited time machine sparse image bundle on my NAS. Wanted to do this the easy way so this time created 1 TB image sparse disk image bundle in Disk Utility.app. Then one new important step for OS 10.8 need to tell the OS that may […]

Clean install OS X 10.8

First posted: 16.7.2012 under IT – Last modified: 21.7.2012 at 10:57 pm

Although it was a bit more tricky in 10.7 clean installing OS 10.8 is easier. Download Mountain Lion Extract the emergengy Startup disk Write this image to a an empty HFS+ GUID formatted USB drive using disk image or Carbon Copy Cloner Startup computer with USB drive open disk utility erase disk install

Apparent Temperature Heat Index

First posted: 1.7.2012 under IT – Last modified: 1.7.2012 at 7:07 pm

Was looking around for an index to some how combine the influence of relative humidity on temperature and came across the heat index of apparent temperature (TA). The apparent temperature is calculated from the temperature in Fahrenheit or Celsius and relative humidity in percent using the following empirical equation: TA = c0 + c1 T […]

Facebook Image Loading Issue

First posted: 28.6.2012 under IT – Last modified: 28.6.2012 at 9:58 pm

For the last few month I have been having issues with images not loading from Facebook. Turns out all Facebook images shared by users are stored on the akamai content distribution systems with the domain name fbcdn-sphotos-a.akamaihd.net. Direct loading of the URL for an image in Safari also didn’t work. Looking up the hostname in […]

SSL and Mac OS X 10.7 Lion Server

First posted: 21.6.2012 under IT – Last modified: 21.6.2012 at 9:59 pm

Although basic web server functionally is provided in Mac OS X 10.7 migrating to the full server has a number of advantages. Firstly there is no need to dig around in the apache config files to enable PHP and other things as well as the ability to setup hosting multiple websites from different directories and […]

Email server setup in Mac OS X 10.7 Lion Server

First posted: 23.4.2012 under IT – Last modified: 23.4.2012 at 8:16 pm

As I want to move from a self-signed to a true external authenticated SSL certificate I need to setup a email server for my domain. With Mac OS X 10.7 server installed this should be easy. However the get it working was not so obvious. The first step is to make sure you DNS passes […]

Designer Cantenna

First posted: 17.4.2012 under Electronics – Last modified: 17.4.2012 at 9:22 pm

Ever since I read about the a directional WIFI antenna made out of a Pringles can I wanted to make one. The only problem is that had no real use. Finally I have an excuse so I though I would finally put one together. Although cantennas can be made out of many different shape and […]

ReadyNAS TimeMachine Verification Issues

First posted: 16.3.2012 under IT – Last modified: 16.3.2012 at 10:16 am

Every so often, when my laptop runs out of battery during a backup, I receive the following: “Time Machine completed a verification of your backups. To improve reliability, Time Machine must create a new backup for you.” Not only does it take a long time to create a new full backup but it also removes […]

Enable wordpress permalinks Mac OS X 10.7 Server

First posted: 15.2.2012 under IT – Last modified: 2.3.2012 at 9:32 pm

Now hosting server from Mac OS X 10.7 Server and from my user directory as it is easier to add files. As with 10.6 by default permalinks in wordpress don’t work and the httpd.conf file needs to be edited as described here to allow override. This can be done In 10.7 by editing the httpd.conf […]

Enable SFTP update WordPress Mac OS X 10.7

First posted: 23.11.2011 under IT – Last modified: 2.11.2013 at 2:03 pm

Although worpress allow an auto update feature, by default it only allows either FTP or FTPS. Ideally I would like to use SFTP as this would only require the SSH port to be open on my web-server. Update: Currently I use this plugin: SSH SFTP Updater Support To enable this the following steps need to […]

ReadyNAS NV+ Expansion

First posted: 3.9.2011 under IT – Last modified: 17.2.2012 at 3:37 pm

Although I had planned to increase the size of my NAS’s array from 1.5 TB (4×500 GB) to 6 TB (4×2 TB) I had originally intended to only do this once I had upgraded my iMac to a 2TB disk. However, fait had other plans and one of my disk died a sudden death and […]

WordPress & Mac OS X 10.7 Server

First posted: 28.8.2011 under IT – Last modified: 28.8.2011 at 9:51 am

So having upgraded and got my old WordPress install working I din’t want to go through all the effort of creating an self-signed SSL certificate as described here. Having read about the server add on to Mac OS X 10.7 I was intregued that it offered simple configuration of SSL for both web services i.e. […]

Mac OS X 10.7 Lion Semi-Clean Install

First posted: 7.8.2011 under IT – Last modified: 25.8.2011 at 6:01 pm

When upgrading from Mac OS X 10.6 Snow Leopard to 10.7 Lion you are recommended to install Lion over Snow Leopard. Now, having messed around behind the scenes of my Snow Leopard install I didn’t want to build upon possibly shaky foundations. With Lion there are limited official options either clean install having erased your […]

Mac OS 10.7 & Temperature Log

First posted: 7.8.2011 under IT – Last modified: 25.8.2011 at 6:01 pm

Having done a clean install of Mac OS 10.7 the back end of the temperature logger for my house needed to be reinstalled. If only I had written down what I did to get it working! Install SiLabs USB-to-UART driver from their website Install the perl Device-SerialPort module by downloading from here, extracting then running: […]

Mac OS X 10.7, Time Machine & ReadyNAS NV+

First posted: 6.8.2011 under IT – Last modified: 1.11.2013 at 12:18 pm

Time machine is wonderful, and has saved my bacon numerous times. As an early adopter of Time Machine, Mac OS 10.4 and a ReadyNas NV+ the not-so-simple setup procedure was followed. All was well through Mac OS X 10.6 Snow Lepoard using this combination of a custom share and sparse images of fixed maximum size. […]

MySQL startup item Mac OS X 10.6

First posted: 25.6.2011 under IT – Last modified: 25.8.2011 at 6:01 pm

Althogh checked in the preferences pane of system preferences an error occurs upon start stating that an insecure startup item was detected: /Library/StartupItems/MySQLCOM has not been started because it does not have the proper security settings. The issue and solution is described here. Solution is to change ownership of MySQL startup item to root:wheel then […]

Enable oauth on Mac OS 10.6

First posted: 25.6.2011 under IT – Last modified: 31.1.2014 at 4:02 pm

In order to allow access to the LinkedIn API the oauth module is needed in PHP. The default configuration released with Mac OS 10.6 does not come with this. This can be seen by seeing if this module is listed in the php info. phpinfo.php The easiest way I found to described here using homebrew. […]

Enable permalinks Mac OS X 10.6

First posted: 30.3.2011 under IT – Last modified: 11.3.2012 at 9:00 pm

By default permalinks in wordpress don’t work under Mac OS X. The htp.conf file needs to be edited as described here to allow overide. This can be enabled by editing http.conf such that under: /Library/WebServer/Documents the following setting is set: AllowOverride All

iOS support

First posted: 20.3.2011 under IT – Last modified: 26.3.2012 at 6:33 pm

Although possible to use on mobile devices, especially iOS devices, wordpress needs to be customised. As I wanted a simple solution luckily there is the WP touch plugin to automatically create some iOS goodness!

Implement reCAPCHA on Mac OS X 10.6

First posted: 17.3.2011 under IT – Last modified: 25.8.2011 at 6:02 pm

I want to publish my email address but don’t want to get lots of spam. Although there are many ways to do this, such as replacing simple text replacement e.g. using [at] instead of @, they all look ugly. One solution is to use the MailHide and a CAPTCHA. Such email address hiding can be […]

WordPress & MySQL DB backup

First posted: 17.3.2011 under IT – Last modified: 23.4.2012 at 7:26 pm

Automated script to backup word press MySQL database and main web documents directory each day and keep monthly backup. The script backup-wordpress.csh is run by cron each day at midnight: 0 0 * * * backup-wordpress.csh The crontab in Mac OS X 10.6 is located at: /usr/lib/cron/tabs/$username Cron tabs are far more easily created and […]

SSL & HTTPS on Mac OS X 10.6

First posted: 14.3.2011 under IT – Last modified: 25.8.2011 at 6:09 pm

As SSL encryption was needed for access to the LinkedIn API and Mac OS X 10.6 does not ship with SSL enabled, in order to use the LinkedIn API SSL certificates need to be created and SSL and HTTPS enabled. To generate and self-sign the certificates the following processes was followed: Mac OS X Hints: […]

Auto-updating CV via LinkedIn API

First posted: 14.3.2011 under IT – Last modified: 19.3.2012 at 5:32 pm

So I wanted to publish my CV on my home page but don’t want to have to update the original LaTeX document, my LinkedIn resume and my homepage. As I already have CV on my public linkedIn profile a solution was found through the wonders or WordPress plugins. There are a few plugins to post […]

WordPress Weblog as CMS

First posted: 13.3.2011 under IT – Last modified: 16.3.2011 at 6:58 pm

I needed an easy to maintain homepage with a clean uniform look-and-feel which allowed future style changes. To do this the WordPress blogging environment, with various plugins was used as a content management system (CMS). For such a small site this allows easy site-wide stylesheet and template customisation, remote posting and a mixture of database […]

Temperature & Humidity Log

First posted: 13.3.2011 under IT – Last modified: 17.3.2011 at 1:19 am

The aim of this project started out with then need to know current temperature and humidity in my house and expanded into a little bit more. It started out as just one perl script to locally log the temperature and humidity but soon expanded to a log aggregator and a dynamic webpage that can be […]