Posts tagged “Programming”

WordPress Wednesday: Grab First Image from Post

WordPress Wednesday: Grab First Image from Post

In which I explain how to parse the first image from a post

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

string.replace(/[^\d.]/g, "");
  • Hugh Hefner: Teen Cartoonist
  • Have you ever ordered any of these secret restaurant menu items?
  • Congratulations to the Gators, who won their first NCAA Indoor Track Championship this weekend. (It’s nice when the football team has a running back who spends the offseason being one of the fastest sprinters in the nation.)
  • A solar-powered iPhone charger is a pretty cool idea.
  • Almost everyone I know uses a computer on a daily basis. Almost nobody I know understands the differences between files, applications, and websites. That’s why Apple is doing the smart thing by hiding all of that.
  • “Bad programming is easy. Idiots can learn it in 21 days, even if they are dummies.”
  • The best way to learn about database design is to design databases. It sounds simple. It gets more complicated when you try to design a database to manage gay marriage.
  • There are quite a few pearls of wisdom in the 2009 annual letter to shareholders from Warren Buffett.
  • Somebody needs to buy me these boots. They are awesome. Size 11, please.
  • This was a sort of depressing headline to see in my feed reader: Once-revered South Carolina lawmaker freezes to death alone.
  • “Faced with a flood of headlines on an ever-increasing variety of topics, we shut off. We turn to news that doesn’t require much understanding — crime, traffic, weather — or we turn off the news altogether.”
  • I’ve been looking for a way to run three displays from my MacBook Pro for over a year now and not found any that weren’t ridiculously expensive. And then I came across this guy running four displays!
  • Geek out with this awesome CSS3 Generator.
2024-04-09: Broken links in this post have been removed and/or updated.

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.