Dynamic page titles with GitHub Pages

By Josh Sherman
2 min read
development
github
github pages
jekyll

Ran into a bit of an issue today when deploying some changes to my blog. The home page, which was working just fine locally, was being treated as if it were a blog post page. What keyed me off to this was the title of the page which was “joshtronic […]

Passing variables to anonymous PHP functions

By Josh Sherman
1 min read
development
php

The other day I ran into a situation (first time, it seems) where I needed to access a variable inside of an anonymous function inside of preg_replace_callback(). My first thought, even though it went against my better judgement was to simply define the variables as global inside of the function. […]

Opt-out responsive design using LESS

By Josh Sherman
1 min read
development
design
css
less

I liked Chris Coyier’s post Opt-Out Responsive Design? but really didn’t like the idea of having to qualify all of my selectors with a parent class to indicate that we should be using the responsive version of the site. I do favor serving the user a single stylesheet instead of […]

Using list() with foreach() in PHP

By Josh Sherman
2 min read
development
php

Continuing my showcasing of all of the awesomeness in PHP 5.5 that I am discovering since my upgrade from 5.3, let’s discuss using the the list() function inside of a foreach() block. Have you ever had a situation where you are looping through a multi-dimensional array and the array is […]

Linode is my favorite DNS hosting provider

By Josh Sherman
4 min read
reviews
hosting
linode

There, I said it. Even though I’ve moved my day to day server needs to bare metal, I still keep a 1GB Linode instance spun up so that I can take advantage of what I consider to be one of the best DNS hosting providers out there. I know you’re […]