Semantic version numbers
Gone are the days of arbitrarily assigning version numbers to every new software release. With semantic versioning, the question of how and when to bump versions is made simple.
There's a reason that Bootstrap 3 has ugly buttons
It's true. Everyone loves Bootstrap's buttons...at least they did until 3.0 came out.
Whipping file inputs into shape with Bootstrap
There are many, many, many ways to hack a file input so it looks and behaves consistently across all browsers. There's even a pretty slick plugin to help get the job done. Unfortunately, most of these solutions are cumbersome, prone to cross-browser issues, and require JavaScript.
Tips for the aspiring web developer
So you want to be a web developer...excellent choice! It's a very rewarding position that can be a lot more fun than most other programming jobs. However, before you take the plunge into a career in web development, there are a few things you should probably consider.
Down with the share widget!
In a world dominated by social media, it's natural to want visitors to share your content with friends and followers. This really isn't a bad thing, but how you go about encouraging them can actually be discouraging.
Feature detection for CSS transitions via jQuery $.support
When working with CSS transitions, the need to detect whether or not the browser supports them may arise. It can be of particular use when working with the transitionend event, which won't fire in unsupportive browsers.
Access pages without the php extension using .htaccess
There are a number of ways to make "clean URLs" work on your site, but this one is pretty straight forward. It allows you to access /any-page.php by simply going to /any-page. Just place the following into your .htaccess file (and make sure that mod_rewrite is enabled):
Detecting mobile devices with JavaScript
While I understand and value the concept of feature detection over browser detection, sometimes the need for knowing whether or not we're dealing with a mobile device arises. For in-depth device checking, you can rely on a complex library such as The MobileESP Project. But for simpler applications, the following snippet can be useful.
Redirecting to and from the www subdomain with .htaccess
Here are a few snippets that will come in handy if you ever need to redirect www.example.com to example.com or vice versa. There are a number of similar methods out there, but I prefer these as you don't need to modify anything between development and production.
The SimpleImage library for PHP
If you love working with PHP but hate the GD library, you'll love the Simple Image PHP class I'm releasing today. This class takes the headache out of dealing with images and features over 25 useful methods.