Here's a nice way to fade your pages in using CSS and a bit of JavaScript. The solution is clean and smooth, with no flickering on load. If JavaScript is disabled, the page will still load but the fade effect will not occur.

Here's a nice way to fade your pages in using CSS and a bit of JavaScript. The solution is clean and smooth, with no flickering on load. If JavaScript is disabled, the page will still load but the fade effect will not occur.
Those default box shadows that appear inside of your input elements on iOS can be pretty annoying, especially if you're going for a flat or subtle look. Here's how to remove them.
Here's another gotcha if you're using PHP's basename()
on a string that contains non-Latin characters: The resulting string will get butchered.
Have you ever needed to send a PHP variable, array, or object to JavaScript? It can get complicated trying to escape the output properly. Here's a way that always works—no escaping necessary.
Years ago I showed you how to force a file to download with PHP. Now with HTML5, you [almost] don't have to do that anymore.
I stumbled across a tweet by Quincy Larson the other day and it's been resonating in my mind ever since. Mostly because it's something I tend to have a problem with.
Some thoughts I had after conversations with a friend who has a terrible manager. This isn't nearly a comprehensive list, but it highlights many of the problems they were experiencing. Maybe my friend's manager will stumble upon it some day.
Feedback is critical to an app's success. How will you know what to fix or improve on if your users don't tell you? It seems obvious, but here is something I should have been asking my users from the start.
When I stumbled across this post today, I was almost convinced that I had wrote it myself. Many of the points in it hit home, so I hope it helps people better understand how developers think and what they go through when interruptions arise.
Panda is back! My favorite tool for compressing PNGs now has a JPEG version.
Back in 2012, I wrote an article called Down with the "Share" Widget. In it, I talked about why plastering social sharing buttons all over your website is completely ineffective. This morning, Smashing Magazine all but confirmed my theory.
Ever wished you could vertically center your Bootstrap modals? Here's some code that will let you do just that.
Twitter is great for a number of reasons, but it's best feature is that you can follow and connect with virtually anyone—and nobody will call you a "stalker".
I've had my head buried so deep in code that I hadn't even noticed this existed. It's a simple way to reference the current text color when writing CSS. Works in modern browsers, including IE9+.
Last week I started using spaces to indent code instead of tabs. It's something I swore I would never do, but I'm glad I finally did.
Last week I wrote that you can sort lines of text alphabetically in Sublime Text 3. Whilst playing with features under the Edit menu, I happened across the Permute Lines menu. Here's what it does.
I needed to sort hundreds of lines of text in a PHP file the other day. It was a large array of strings, and I wanted to alphabetize it so I could easily see if a specific string was already present.
Apple announced some great updates to the iPad, iMac, and the Mac Mini today. They also talked about iOS 8.1, which will be available this Monday (October 20th). And then came the much anticipated OS X Yosemite release which is supposed to be available today—but you may want to hold off for a bit.
Here's something exciting from the CSS world: shapes!
For ultra lightweight projects where a framework is overkill, I tend to use Eric Meyers' CSS reset. And since I'm not a glutton for punishment, I also throw in the tried and tested box-sizing fix popularized by Paul Irish. Instead of searching for and combining these snippets every time I need them, here's a paste-ready version for convenience.