]]>http://www.jbarker.com/blog/2012/books-software-projects/feed0http://www.jbarker.com/blog/2012/books-software-projectsOlympia, an Old German Radio (photo)http://feeds.jbarker.com/~r/jbarker-blog/~3/9ZNqRrFvjRM/olympia-old-german-radio-photo
http://www.jbarker.com/blog/2012/olympia-old-german-radio-photo#commentsSun, 01 Apr 2012 17:25:35 +0000http://www.jbarker.com/blog/?p=132Berlin, Germany – April 2012. An old German radio named Olympia. Sat next to this retro gem at a tiny neighborhood cake shop on a lazy Sunday. Photographer: Jay Barker, Resolution: 2048 × 1536 (QXGA), License: CC BY-NC-ND.

]]>http://www.jbarker.com/blog/2012/achensee-austria-lake-mountain-mirror-photo/feed0http://www.jbarker.com/blog/2012/achensee-austria-lake-mountain-mirror-photo“Resource interpreted as Font but transferred with MIME type …”http://feeds.jbarker.com/~r/jbarker-blog/~3/4V2BWXM44o4/resource-interpreted-font-transferred-mime-type
http://www.jbarker.com/blog/2011/resource-interpreted-font-transferred-mime-type#commentsSat, 28 May 2011 22:08:05 +0000http://www.jbarker.com/blog/?p=91Have you seen a warning like this in your web browser console?

“Resource interpreted as Font but transferred with MIME type ...“

Some browsers, like Google Chrome, will show this warning when a font is downloaded from a web server that sets an unexpected MIME type for fonts.

For many font types, there is a solution!

Update the configuration for your web server with the following MIME type per font file extension:

.ttf — font/truetype

.otf — font/opentype

.eot — application/vnd.ms-fontobject

.woff — application/x-font-woff

If you are using Apache configuration, you may include the AddType directive for each font type:

With a specific MIME type configured per font, and not the generic application/octet-stream MIME type, you should no longer see a warning in your web browser console.

This configuration — while effective for cleaning up your console — does not include the technically correct MIME type for fonts like OTF, TTF, and WOFF. For these font types, an official MIME type has not (yet) been approved. An official type for WOFF — application/font-woff — has been requested.

However, since then web font support in most major browsers has continued to improve. The lack of official MIME types for web fonts is not a major concern, and it has not slowed further adoption of web fonts in most major web browsers. One emerging font format is WOFF.

]]>http://www.jbarker.com/blog/2011/web-fonts-mime-types/feed5http://www.jbarker.com/blog/2011/web-fonts-mime-typesWhat is apple-touch-icon.png?http://feeds.jbarker.com/~r/jbarker-blog/~3/-CtvcP27KCY/apple-touch-icon-png
http://www.jbarker.com/blog/2009/apple-touch-icon-png#commentsMon, 10 Aug 2009 02:00:17 +0000http://www.jbarker.com/blog/?p=3The use of apple-touch-icon.png as defined by Apple is on the rise. This file is a small, square image that is primarily intended for bookmarking a web site on a mobile device.

The AddType directive for Apache supports multiple file extensions and the values are case-insensitive.

Web fonts are typically one of three file types:

OpenType (.otf)

TrueType (.ttf )

Embedded OpenType (.eot)

For many common file types found on the web, there is a dedicated MIME type defined. That is not the case for some font file types. Both OpenType and TrueType files do not have assigned MIME media types.

The MIME type application/octet-stream is used is to indicate binary data that does not have a more specific, assigned MIME type. In practice it is often used as the default MIME for binary, non-text data that should be downloaded to a file. See RFC 2046 for more details.