All Posts
3 min read
My web development feed
A collection of links (and an OPML file) to web development blogs
4 min read
Making links big
Back in the days before HTML5, wrapping a link around block-level elements wasn't semantically appropriate. Even now, some situations—like linking a table row—call for a more creative solution
7 min read
Rebuilding the site with Astro
After 12 years, I decide to rebuild the site using Astro, a JavaScript-based static site generator
4 min read
HTML5's Web * Features
A list of Web * APIs because sometimes I can't remember which is which
1 min read
yeoman, ulimit, and unmet dependency
Quick fix for a warning when running the Yeoman CLI
1 min read
Cleaning up dead git branches
A super neat git trick for finding out which branches we can delete when we want to do a little housekeeping
2 min read
Recent reads
A list of things I've read recently related to web development
7 min read
My (mis)adventures with web video
Problems loading video on web sites and ways to fix them
1 min read
ReWriteRule always considered first
A reminder about priority order for Apache's mode_rewrite
1 min read
Mobile Safari debug console
Late to the party, once again. Just discovered Debug Console in iPhone while looking through the Safari Developer Library and stumbling upon Safari on iPhone Tools: Safari on iPhone OS provides a debug console which reports messages, coding errors, warnings, and tips. In the iPhone Simulator or on iPhone or...
1 min read
Forcing MS Office files to download
Every time clients start putting up links to Microsoft Office files on their sites, I’m sent scrambling around my hard drive with a find ~/Sites -name ".htaccess" -exec grep "ms-word" '{}' \; -print command or searching the googles for htaccess force download ms-word. Fortunately, it doesn’t take too long to...
1 min read
JSMake
Yet another build script tool
1 min read
pushing an existing local repo to new github repo
I usually start my projects with a local git repo and then at some later date decide to put it up on github.com. That’s usually a no-brainer if I’m the one who creates the remote repo; GitHub provides clear instructions on the very next page. But if the project is...
1 min read
Another media query detection script
After I linked to a Media Query detection script written by Nicholas Zakas, Paul Irish pinged me to let me know about a gist he adapted from Scott Jehl. This one looks even cooler. It takes advantage of the new matchMedia function when it’s available, and defines its own when...
1 min read
Media query detection
This gist from Nicholas C. Zakas looks really handy: This function determines if the browser is currently in a particular media media mode. Use the same media query as you would in CSS or on a <link> element. I can see myself using it quite a bit. His usage examples...
2 min read
Creating a new remote git repo
It took me a while to track down how to set up a new git repo on my remote server hosted by DreamHost. I imagine that most, if not all, of this stuff probably applies to any shared hosting service. Here’s what I have to do — in case I...
1 min read
JavaScript Garden
JavaScript Garden is a growing collection of documentation about the most quirky parts of the JavaScript programming language.
2 min read
Rakefile
My goal for this site is to make it as easy for me to use as possible. That’s why I’m using Jekyll (which I’ll blog about another time). I also want to automate as much of the blogging, version control, and deployment as possible. Up until today I was using...
1 min read
bash-it
Lately I’ve been dabbling with bash scripting, mostly setting up aliases and very simple functions to make my life on the command line a little easier and more efficient. A couple weeks ago I stumbled upon a bash-scripting gold mine called “bash-it.” It’s a GitHub Repo with lots of custom...
1 min read
rsync shortcut
The OS X Finder is the undisputed loser in the file management category. What’s particularly crazy is that OS X has rsync built into the OS. I can never remember the flags to use for the various rsync options, so I wrote a little bash function: function cps() { dirname=$1...
1 min read
quick object merge
Sometimes I load a small init.js file in the <head> and load all the other scripts before the closing <body> tag, and it’s nice to have a few utility functions. This is one of those functions I use every now and then: var FM = FM || {}; (function() {...