The viewport meta tag

January 5, 2012  |  No Comments

One of the key steps in creating a responsive web layout is defining how it will look on mobile devices. While media-queries allow us to define alternate CSS for the positioning and scaling of elements, the viewport meta tag defines the width and scale of the “page” itself.

Here’s an example of a tag that will force the browser to resize a website based on the device’s viewport:

<meta name=”viewport” content=”width=device-width”>

So, what does this mean?

Most mobile web browsers will scale web pages down so the entire width of a page fits neatly. Which is great, especially for sites that haven’t been optimized for small displays. The caveat is, the browser doesn’t scale pages up in size to fit the screen, even if the width of the page is set to device’s resolution. Enter the meta tag.

By adding the viewport meta tag we can force the browser to use its display resolution (or any specified number) as the base width for a website. A few other parameters can be added as well to further handle user/browser scaling.

Here are a couple articles to add to your Instapaper:


Messing around with Facebook Page Tabs

December 16, 2011  |  No Comments

Facebook has made it easier than ever to create a custom page tab. No more installing Static FBML apps, now it’s as easy creating an app as a developer.

I built this childish Facebook page tab as an example, and I have to say it’s probably the dumbest tab I’ve ever seen. I love it.

Install the Pull My FInger page tab.


WordPress Custom Post Types Throwing a 404

November 18, 2011  |  No Comments

Having trouble viewing posts from a new custom post type? Are you only seeing “Nothing found” or your 404 page?

Try re-saving your Permalinks structure.

This has come up a few times when I’ve used a custom structure for my permalinks (/%postname%). For whatever reason, re-saving your permalinks settings allows posts from all post types to show up at their proper urls.


Need help setting up custom post types? This article from Smashing Magazine will get you started: How To Build A Media Site On WordPress


Create OGG Video Files for HTML5 With ffmpeg2theora

October 21, 2011  |  No Comments

While prepping a bunch of videos for HTML5, I found that my go-to video conversion software didn’t offer OGG support, which is essential for cross browser playability. After searching the googs and trying a bunch of different options I found (using John Gruber’s article as a solid recommendation) ffmpeg2theora.

It’s great. Not only does it work on Mac/PC/Linux, it’s really easy to use. I was able to crank out some great looking OGG videos in no time, even with my limited exposure to command-line computing.

Here’s a quick and simplified overview of how to get started with ffmpeg2theora on a mac, from a non-expert. OK, let’s go!

Getting started with ffmpeg2theora

  1. Download and install a copy of ffmpeg2theora.
  2. To simplify things we’re going to keep all of our files on the desktop. So move a copy of the (mp4) video you want to convert onto your desktop.
  3. Open up the application Terminal.
  4. In the Terminal window type cd desktop and press return. This changes the directory of the Terminal window to the desktop.
  5. To convert yourVideo.mp4, type ffmpeg2theora yourVideo.mp4 and press return. A new file called “yourVideo.ogv” will appear on your desktop. This is the default and simplest way to convert your files.
  6. Open a new terminal window and type ffmpeg2theora and press return. This will display a readout of ffmpeg2theora’s options for converting your videos.
  7. Use that option panel and try different settings until you’re satisfied with quality and file size. For example, type ffmpeg2theora yourVideo.mp4 -v 8 -V 600 -o newVideo.ogv and press return. This will increase the video quality from the default of 6 to 8, set the bitrate at 600kbps, and will name the resulting file “newVideo.ogv”

Now go ahead and change a few more of the options until your video is the size and quality you like. And since we’re working in Terminal, you can open up multiple windows and convert multiple videos at the same time.


Mark of the Devigner

September 7, 2011  |  No Comments

Mark of the Devigner

&#38; is the ascii equivalent of the ampersand, which is the perfect symbol to describe the devigner. Someone who does this & that, someone who is both creative and analytical.

Above is a first round execution exploring one possibility for a mark that sums up the designer/developer types.


Typekit & Web Fonts

September 29, 2009  |  No Comments

Typekit and Web Fonts

If you haven’t heard of Typekit it’s definitely worth taking a moment and poking around the website. In a nutshell, they want to expand the capabilities of web typography by increasing the number of fonts web designers can choose from. I’m pretty sure they do this with the @font-face, a bit of javascript and a subscription. Either way it has some pretty awesome capabilities.

The awesome thing about Typekit and @font-face is that they work in Safari; the shitting thing about Typekit and @font-face is that they don’t work anywhere else (at least not IE, FF, Chrome or Opera).

edit: @font-face will work in IE, FF, Chome & Opera, but additional font file types are needed and it must be in a version running CSS3. OTF & TTF work in Safari, but EOT is needed for IE, and SVG is needed for Opera.

As annoying as that may seem, TTF fonts can magically be turned into EOT here, and an SVG converter can be downloaded here.

Here’s an additional resource on the subject: Mozilla Hacks @font-face

I decided to make a little web utility so that I could more easily preview the Typekit fonts without logging in and using their previewer. Since I currently have a free membership with Typekit I’m only able to use two of their fonts at a time, so I decided to add a few free typefaces that I found. If I do end up getting a membership I think it will come in handy.

Font Previewing


Animated Pixel Fonts

July 24, 2009  |  No Comments

Continue reading