Posts in the category “Programming”

If you need to strip all non-numeric characters from a string (except for the period character) using JavaScript, try:

string.replace(/[^\d.]/g, "");
WordPress Wednesday: Safe Function Calls

WordPress Wednesday: Safe Function Calls

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

WordPress Wednesday: Thesis Theme Tag Text

WordPress Wednesday: Thesis Theme Tag Text

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

What Have You Tried?

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

Parsing PHP in CSS

Parsing PHP in CSS

Dynamically process your css scripts

Computer Programming

Found: One brilliant article about being a programmer Source: MeFi

What Is This?

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.

bartender.live

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.

Hemingway

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.