your baddie teddie since 1983.

Month: March 2012

How to edit host file on Mac OSX Leopard/Snow Leopard/Lion


The hosts file is a text file that maps hostnames to IP addresses.
Upon typing a url address on the browser, the system will first check if there is a relevant entry on the hosts file and gets the corresponding IP address, else it resolves the IP via the active connection’s DNS servers.

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

Editing the hosts file

Editing the hosts file in Mac OS X, is a pretty easy task, especially if you are familiar with the terminal. (Tested on Leopard/Snow Leopard/Lion)

Step 1 – Open the

Either by typing “Terminal” on the Spotlight, or by going into Applications -> Utilities -> Terminal.

Step 2 – Open the hosts file

Open the hosts file by typing on the Terminal that you have just opened:

$ sudo nano /private/etc/hosts

Type your user password when prompted.

Step 3 – Edit the hosts file

The hosts file contains some comments (lines starting with the # symbol), as well as some default hostname mappings (e.g. – localhost).
Simply append your new mappings underneath the default ones. Or edit one of the default values if you know what you are doing!
You can navigate the file using the arrow keys.

Step 4 – Save the hosts file

When done editing the hosts file, press control-o to save the file.
Press enter on the filename prompt, and control-x to exit the editor.

Step 5 – Flush the DNS cache

You can issue a simple Terminal command to flush the DNS cache, and have your host file changes to take immediate effect:

$ dscacheutil -flushcache

And you’re done!

Apple iPad 3 (iPad 3rd generation) model numbers

With Apple deciding to forgo the numeric naming in their latest iPad, many people are finding it hard to make reference to “The New iPad”. It is not helped by the lack any distinct labeling on the box itself to differentiate it from the iPad 2. The only way to tell is by cross referencing the model number, or making sure that there is an “iCloud” sticker on the bottom of the box. For convenience and to avoid confusion, the new iPad (3rd generation) would be referred as “iPad 3″ throughout this post.

I came across this very problem when i bought a few sets of the iPad 3 to resell. Buyers would ask how can they tell that this is the iPad 3, instead of an iPad 2? Finding a suitable reference table for the model number that translate to which iPad 3 is also hard to come by. Hence i decided to compile a list, based on the Singapore retail sets of iPad 3.

The model number is displayed on the back of the box, bottom right corner.
iPad 3 model number label
iPad 3 – Black
MC705ZP/A – iPad 3 Wi-Fi only 16GB – Black
MC706ZP/A – iPad 3 Wi-Fi only 32GB – Black
MC707ZP/A – iPad 3 Wi-Fi only 64GB – Black

MD366ZP/A – iPad 3 Wi-Fi + 4G 16GB – Black
MD367ZP/A – iPad 3 Wi-Fi + 4G 32GB – Black
MD368ZP/A – iPad 3 Wi-Fi + 4G 64GB – Black

iPad 3 – White
MD328ZP/A – iPad 3 Wi-Fi only 16GB – White
MD329ZP/A – iPad 3 Wi-Fi only 32GB – White
MD330ZP/A – iPad 3 Wi-Fi only 64GB – White

MD369ZP/A – iPad 3 Wi-Fi + 4G 16GB – White
MD370ZP/A – iPad 3 Wi-Fi + 4G 32GB – White
MD371ZP/A – iPad 3 Wi-Fi + 4G 64GB – White

© 2024 eddie

Theme by Anders NorenUp ↑