MAMP Pro – Access MySQL from another machine

To access MySQL that has been installed as part of MAMP:

1.  Click on FileEdit Template and then MySQLmy.cnfScreen Shot 2014-03-18 at 14.55.06

2. On line 37 (normally) you will see the bind-address = 127.0.0.1 (localhost) by default. Change this to: 0.0.0.0

Screen Shot 2014-03-18 at 14.55.50

3. Open phpMyAdmin on the local machine, click on the Users tab and then Add user

Screen Shot 2014-03-18 at 14.58.19

4. Enter details of the username and password. On the Database for user section choose Grant all privileges on wildcard name. Check all privileges for the user. (Ensure that Grant is ticked under Administration)

Screen Shot 2014-03-18 at 14.59.30

Click on Add user.

5. Restart the MAMP servers.

NI Railways Wifi – not connecting – solved!

After nearly 1 hour of trying to decipher the problem why when trying to connect to the Wifi Service on the train and getting an error, I have finally found the issue.

The error you get is that the page re-directs to itself in a never-ending loop. This happens regardless of whether using Windows or MacOs.

If you have configured a different DNS server (e.g. 8.8.8.8) then you cannot connect to the NI Railways Wifi, you have to use their DNS servers, and set them to automatic.

Phew – finally online!

Mac Os – Convert .dmg files to .iso (ISO-9660 Filesystem)

To convert a .dmg file to .iso on Mac OS is really easy.

Open Terminal and type (if your file is on the desktop):

hdiutil makehybrid -o ~/Desktop/outputFile ~/Desktop/sourceFile.dmg

NB. The outputFile DOES NOT have a file extension, only the source file has the .dmg extension.

This converts the .dmg to an ISO-9660 compatible ISO.