How to edit the hosts file in Mac OS X 10.8 – Mountain Lion

The hosts file is a text file that maps hostnames to IP addresses. Upon typing a url address in the browser, the system first checks if there is a relevant entry in the hosts file and if exists gets the corresponding IP address. If no entries exists it resolves the IP via the active connection’s DNS servers.

The hosts file can be edited to block certain hostsnames, like ad-serving/malicious hosts, or used for web development purposes, i.e. to redirect domains to local addresses.

Continue reading

Disable the Sudden Motion Sensor on a Mac Laptop

The Sudden Motion Sensor is designed to protect your Mac hard drive in the event of a computer being dropped or an unusually strong vibration. Essentially what it does is park the hard drive head when movement is detected, which prevents it from potentially scooting across the disk surface and scratching or otherwise damaging the drive or drive head.

Continue reading

How to find the MAC address in Mac OS X

Every physical interface of a computer has an associated MAC address which is a unique identifier. A MAC address is different from an IP address and is used for network access control and monitoring of network connectivity, such as applying MAC filtering on your Internet router to only allow specific machines to connect to the internet via your router. However, in order to do any of this you need to know the computers MAC address. This article explains how to find the MAC address of your MAC OS X machine.

Continue reading

How to edit the hosts file in Mac OS X 10.7 – Lion

The hosts file is a text file that maps hostnames to IP addresses. Upon typing a url address in the browser, the system first checks if there is a relevant entry in the hosts file and if exists gets the corresponding IP address. If no entries exists it resolves the IP via the active connection’s DNS servers.

The hosts file can be edited to block certain hostsnames, like ad-serving/malicious hosts, or used for web development purposes, i.e. to redirect domains to local addresses.

Continue reading

Unhide Library Folder in Mac OS X 10.7 – Lion

In Mac OS X Lion (10.7), Apple has made the user Library folder hidden. Preferences, presets, and other user customisation settings are stored within this Library folder.

There are two ways to access this folder:

Temporary

To keep the folder hidden and to access it sporadically:

  1. In Finder, choose Go > Go To Folder
  2. In the Go To Folder dialog, enter ~/Library
  3. Click Go

Permanent

To unhide the folder permanently:

  1. Open a Terminal session
  2. Enter the following command (replace <username> with your actual username
  3. chflags nohidden /Users/<username>/Library
  4. Quit Terminal

Taking Screenshots in Mac OS X

Quick post on how to take screenshots using keyboard shortcuts.

Save to File:

CMD+SHIFT+3

Take a screenshot of the entire screen and save it as a file on the desktop

CMD+SHIFT+4

Select an area and take a screenshot of that area, save as file on the desktop

CMD+SHIFT+4 followed by SPACE

Click on a window and take a screenshot of that window, save as file on the desktop

Save to Clipboard

CMD+CTRL+SHIFT+3

Take a screenshot of the entire screen and save it to the clipboard

CMD+CTRL+SHIFT+4

Select an area and take a screenshot of that area, save it to the clipboard

CMD+SHIFT+4 followed by SPACE

Click on a window and take a screenshot of that window, save it to the clipboard