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.
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.
Here's a helpful tip for those who need a basic, three-line navigation menu icon. It's just a simple Unicode character.
I know you can change the mouse cursor using CSS, but I never realized that you can actually hide it altogether.
You probably know that you can use data URIs in just about any browser now, but how do you convert an image to a data URI? Turns out, most browsers can do it for you.
In a mere four hours of development, Johnny Lin turned an idea that was scribbled on his notepad into a web app that went viral almost instantly.
$.animate and performs even better than CSS animations.
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.
The other day I was chatting with a friend about Meteor and Node.js. He wanted to show me some code, but in the past Skype's screen sharing hasn't worked so well for that. Then he told me about Screenhero.
A few years ago, I posted a couple functions for validating email addresses using PHP. This is a follow up post that provides a simpler method for validating both email addresses and URLs.
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.
I recently came across an issue where Coda and Transmit would just appear to hang when deleting files on my local machine. Fortunately, the good folks at Panic were able to identify the issue. Turns out, it's a OS X bug.
Scheduled tasks (or "cronjobs") are useful for executing scripts on your server at various intervals of time. They're fairly easy to setup in Plesk 11, which comes with Media Temple's Dedicated Virtual (DV) 4.0 systems. However, if you're using something like
curl in your task, it may not appear to work.
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.
A really awesome framework called Bootstrap was recently released by a couple of guys at Twitter. You probably already heard of it by now. And you probably already fell in love with it. Today I made a plugin that replicates the features of Bootstrap’s dropdown to better suit my needs.
If you've ever used TinyMCE for table editing, you'll know that the experience isn't usually a good one. To prevent clutter, most developers configure the toolbar to have just the Insert/Edit Table button, which isn't nearly enough to do anything useful with tabular data. In fact, TinyMCE's table plugin has 12 tools (i.e. buttons) available for working with tables. The problem is they take up a lot of real estate. They make an otherwise simple toolbar very intimidating and unintuitive for novice users. The fact of the matter is, most people who use TinyMCE may not even need to work with tables, so those extra 12 buttons will just be in their way.
In the world of Git, tags are very useful for keeping track of your project's version history. A lot of folks will argue that you shouldn't delete tags, but there are real-world examples in which tags need to be deleted. That said, it's both a good and a bad thing that GitHub hasn't built the ability to delete tags into it's web app.
Here are some great tips that will help any PHP5 developer support UTF-8 in their applications. This list isn't comprehensive, but it will allow you to do most basic operations while avoiding troublesome character encoding issues.