If you need to strip all non-numeric characters from a string (except for the period character) using JavaScript, try:
string.replace(/[^\d.]/g, "");
In which I explain how to beautifully display enormous WordPress archives in a compact format
In which I explain how I roll my code
Great tools make great code.
View the Friday Five from August 7th, 2009
If you’re editing a WordPress theme template file by adding a call to a plugin’s function, you need to be careful. In six months or a year you’re going to deactivate or delete that plugin, and you’re going to get a big ugly fatal PHP error on your blog. You can avoid it, though, by
Today I’m going to explain how to make your WordPress blog display a special note based on a tag associated with a post. This tip is uniquely written for users of Chris Pearson’s awesome Thesis Theme, but if you are crafty enough with WordPress, you’ll be able to use it regardless of the theme you’re
Over at mattgemmell.com I just found an excellent article about software development and a must-read for any programmer, at any level: If you’re a developer and you’re about to ask another developer a technical question (on a forum, via email, on a chat channel, or in person), you’d better be ready to answer the question
davidgagne.net is the personal weblog of me, David Vincent Gagne. I've been publishing here since 1999, which makes this one of the oldest continuously-updated websites on the Internet.
A few years ago I was trying to determine what cocktails I could make with the alcohol I had at home. I searched the App Store but couldn't find an app that would let me do that, so I built one.
You can read dozens of essays and articles and find hundreds of links to other sites with stories and information about Ernest Hemingway in The Hemingway Collection.