Parsing URLs in JavaScript
There's an excellent trick to parsing URLs in JavaScript, which was introduced last year by John Long over on GitHub. This technique works great, but the resulting search property will be a raw query string. This isn't very useful if you need to access certain variables in said query string. Thus, the following function expands on this paradigm, providing an additional property that contains an object based on the original query string.
An icon converter that supports multiple sizes and transparency
If you're looking for an online utility to convert JPEG, PNG, or GIF images to ICO format, here's one that does exactly that. It supports full transparency when converting 24-bit PNGs and even lets you combine multiple resolutions into one icon file — perfect for generating favicons.
Validating URLs and email addresses in PHP
This is a simple method for validating both email addresses and URLs. Using PHP's filter_var() function, it's actually very easy and doesn't require regular expressions. The following wrapper functions force a true boolean response, so you can use them safely in your logic.
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):