Cameron Spear
  • Blog
  • Contact
Cameron Spear

Cameron Spear

43 posts •

CSS Transform Obliterates Position: Fixed

Apparently, if you have an element with a CSS transform applied to it, and try to put an element inside of it with position: fixed;, that element acts like an element with position:

  • Cameron Spear
    Cameron Spear
1 min read
design

Finally: Matchbook Lab's New Site

Well, Matchbook Lab, LLC formed in... well, I should know. Last fall sometime. Finally, a couple days after summer starts, I have launched MatchbookLab.com. Many thanks to Lawrence Allen's awesome design and

  • Cameron Spear
    Cameron Spear
1 min read

Changes Abound and Spring Cleaning

Last October, I created an LLC: Matchbook Lab. I've been conducting business under that name, and while there still isn't a Matchbook Lab (aka MBL) website yet, it is coming soon. Since I'm

  • Cameron Spear
    Cameron Spear
1 min read

Animating translate3d with jQuery

Using CSS3's translate3d for animated transitions can greatly improve performance, especially on mobile, because doing so triggers hardware acceleration. This means that your phone will kick in a little extra umph to get

  • Cameron Spear
    Cameron Spear
1 min read
bootstrap

Bootstrap: Dropdown on Hover Plugin

I am no longer responding to comments on this blog; it's too much work to manage. Please report any bugs/issues/questions on GitHub. There is a lot of discussion about the Bootstrap

  • Cameron Spear
    Cameron Spear
2 min read
file structure

A Smarter, More Secure File Structure

As I've been using version control more and more (and I've been using hg over git, using my free Bitbucket Account), I've just been putting my repo at the document root of my

  • Cameron Spear
    Cameron Spear
2 min read
apache

Advanced vhosts Configuration

This post assumes you know a little bit about setting up your own Apache configuration and want to configure your vhosts (virtual hosts). When I first set up my vhosts, this is all

  • Cameron Spear
    Cameron Spear
2 min read
apache

How to Restart Apache in Mountain Lion

Starting with Mountain Lion, you can no longer restart Apache by unchecking and re-checking the Web Sharing option in System Preferences > Sharing. Mostly because it's not there. To restart Apache, open the

  • Cameron Spear
    Cameron Spear
1 min read
apache

MAMP Without the App: Quick Version

[Updated on Jan 14, 2014] This is the quick and dirty version to setting up a MAMP stack on your Mac for local development. This process has been similar for every major OSX

  • Cameron Spear
    Cameron Spear
2 min read
apache

MAMP (Mac Apache MySQL PHP) Without the MAMP App

[Update] (Feb 16, 2014) The process is still much the same for Mavericks, but I made a few tweaks/updates. [Update] (Oct 8, 2012) Updated the guide for Mountain Lion, added a note

  • Cameron Spear
    Cameron Spear
12 min read
DOM

jQuery: Fade Images In On Load

Normally in jQuery, you put all of your code in the following block of code: $(document).ready(function() { // Stuff to do as soon as the DOM is ready; }); and that allows you to

  • Cameron Spear
    Cameron Spear
1 min read
dynamic urls

How to Handle Dynamic URLs

I've noticed that a lot of CMSes that try to use a query string and rewrite it in an .htaccess. For example: http://domain.com/index.php?path=galley/birthday-pics or http://domain.

  • Cameron Spear
    Cameron Spear
1 min read
mysqli

Get a Single Value from MySQL Database in One Line of PHP

It always bothered me that it takes 17 steps to do a MySQL query (ok, that's slightly exaggerated), even when you only need the value of one field of one row. This may

  • Cameron Spear
    Cameron Spear
1 min read
ajax

Smart Query Strings part 2: AJAX

This is a version of the PHP snippet I wrote last post, but for JavaScript (specifically jQuery for AJAX calls). Basically, using the same type of call as before, you can use this

  • Cameron Spear
    Cameron Spear
2 min read
get

Smart Query Strings

Have you ever had a time when you started out displaying some simple information in a backend, and you wanted to allow simple paging, so you print out the page numbers as links

  • Cameron Spear
    Cameron Spear
1 min read
I have no name

Where the [User] Has No Name

I woke up to my computer this morning having a bunch of weird little problems. I try to get use my terminal (which was already open from last night) and when I tried

  • Cameron Spear
    Cameron Spear
1 min read
fastcgi

Web Sharing Isn't Sharing

After I updated to Lion, I was innocently coding, minding my own business when I try to test out some PHP code on my local machine and http://localhost isn't pulling up. After

  • Cameron Spear
    Cameron Spear
1 min read
cameron spear

Hello World!

Welcome to my blog! I've been saying I should start a blog, but have been procrastinating. But now, now I start! And it will be grand! The blog will mostly be a tech

  • Cameron Spear
    Cameron Spear
1 min read
Cameron Spear © 2025
Latest Posts Ghost