box-sizing: border-box explained
It's been over two years since Paul Irish famously posted the box-sizing trick that would bring us back to the days of early Internet Explorer.
Give your JPEGs alpha channels
If you need alpha transparency on the web, 24-bit PNGs are usually your best bet. The only problem is that PNGs are lossless and can grow in file size very quickly — much larger than your average JPEG. So what if there was a way for JPEGs to support alpha channels?
How to get faster and better help from support
It's tempting to take out your frustrations on the support person answering your email, but don't send out a message raging about their incompetence. Don't tell them how their product sucks or doesn't work the way you expect it to. Don't TYPE IN ALL CAPS to make sure they understand that you're frustrated. It won't get you faster help — it just makes you look like an asshole.
I'm sure you've had your fair share of horrible customer experiences. It happens, but generally speaking, support teams want to help you resolve whatever issue you're having so you can continue using their product — and they want to do it as quickly as possible.
Swapping variables with JavaScript
Swapping the value of two variables normally takes three lines and a temporary variable. What if I told you there was an easier way to do this with JavaScript?
The next version of PHP may very well be 7
We've been hearing about PHP 6 since 2005, but nothing has been brought to fruition yet. In fact, the project was so plagued with problems that in 2010, it was abandoned. It almost felt like PHP would be perpetually stuck at version 5.
SVG has a logo
HTML5 was the first to get an official logo. Web designers rejoiced, some even hacking together matching logos for CSS. But did you know that SVG also has an official logo, and it's — flowery?
A user interface is like a joke
When I hear a simile like this, it's hard to not share. It's not so much an analogy as it is a good rule of thumb:
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.