How to edit the hosts file in Mac OS X 10.6 – Snow Leopard

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

How to build a simple search filter with jQuery

There are occasions when developing a web application where you’d like to give users the ability to search or filter the information presented.  For example, a web application may feature a page listing your DVD collection, and you want the users to find the movie they’re looking for quickly and easily.  This article shows you how little code is need to achieve this functionality using jQuery.

Continue reading

Show the Size of Selected Files on Mac OS X

Here’s a quick tip to show the file size of selected files/folders.  Generally the status bar of the Finder windows shows the count of selected files and the available hard drive space, but doesn’t show the file size.  On a single file you can right-click the file and select ‘Get Info’ (Apple/Command+i) which will pop-up the ‘Get Info’ floating window, but this is no good for multiple file selection.

Continue reading

“hash” # key missing on Apple MacBookPro?

My first day on the Apple MacBook Pro and was playing around with ‘Numbers’ and wanted to insert the hash (#) symbol in the text.  For the life of me I couldn’t see the symbol anywhere on the keys of the keyboard.

After playing around for a while, I finally found it.  Alt + 3.  Simple when your find it, but frustrating trying to look for it.  I wonder how many other querks I’ll find in the next few weeks as I slowly transition from Windows to Mac.

Just to recap, Alt + 3 to enter the # symbol.