Killing Safari Cookies & Files – Build Your Own Mac App

As a developer, Safari presents some issues when trying to test logins and new content. Safari simply doesn’t like to let go of Cookies and History when you use the built-in buttons to do just that. Build a simple app on your target computer to do this for you quickly, so you can get back to your development and testing. Simply put, just use Apple Automator to create a simple Mac App to delete the necessary files to cleanse Safari Cookies, History and whatever else you are irritated by. This is a workflow that Quits Safari then moves the files I need to cleanse to the Trash and Empties The Trash. It then re-launches Safari so I can continue here I left off, with a blank screen. The caveat is that this will remove ALL cookies and history and whatever you add to the Get Specified Finder Items list!! Your bank logins and similar tracked authentication will disappear too and you will need to login again. This will not remove bookmarks or password program records, unless you specifically add those to the Finder list. Continue reading

Downloadable font on firefox: bad URI or cross-site access not allowed for fonts

When using cool fonts in CSS and the display is off in Firefox, you may find the Error Console declare, “Downloadable font on firefox: bad URI or cross-site access not allowed” as a cause. This simply means that Firefox is trying to improve security for your benefit. Since you control what your pages may access, including content from other domains, such as a devoted font server, you simply modify your .htaccess file as follows.

Place this code somewhere in the .htaccess file, update the server where the fonts are being served, and TEST! Remember that the .htaccess file must be modified on the Font Server, not the Web Server, since Firefox is requiring permission from the Font Server to access those fonts. Technically you can access them in a separate request, so the whole issue seems nutty.

<FilesMatch “\.(ttf|otf|eot|woff)$”>
<IfModule mod_headers.c>
Header set Access-Control-Allow-Origin “*”

The Activity Window is Missing From Safari

Many people are asking, “Where has the Activity Window gone in Safari 6.0?” The Activity Window in Safari allows us to see which files are downloading, which are not loading, which ones have errors, etc. As well, it gives us direct access to the files we’ve downloaded behind the scenes, such as movies and other media types.

It has been suggested that anyone can download an earlier version of Safari at, however, Apple’s Nazis make sure you can’t run any software on their OS if it doesn’t meet their mustard. So, Safari 5.1.7 cannot run on Mac OS X 7 and higher, thus eliminating this as a viable avenue for accessing the Activity Window functionality. Continue reading

Show and Hide Hidden Files in Apple Mac OS X

In Mac OS X, files with names that start with a dot (.) are hidden. You may have noticed some of these before, for example when copying files from your Mac to a PC where they aren’t hidden. The most common one you might bump into is the .DS_Store file that Mac OS X puts in every folder (to save various view settings), but there are all sorts of other hidden files used by all sorts of applications. Continue reading

PHP Headers Example Code for Redirects & Authentication Headers

PHP is not limited to outputting html. PHP can output images, pdf, javascript files, etc.Browsers determine what type of content is by analyzing the headers sent.In this tutorial I will present you with some examples of how to send headers.To send PHP header use the function header(). You must call this function before any output.Use the function headers_sent() to check whether the headers have been sent and output started.

Continue reading