Let’s talk about CSS, baby

Okay, I have a bone to pick with you, Internet. Can we please agree to code our HTML attributes (class, id) in a better way?

Here’s my position: hyphens are superior to underscores

I can back this up with at least two arguments.

  1. In most text editors that I’ve used, keyboard shortcuts CTRL+Left/Right/Backspace will skip over underscores, but not hyphens. So that means if I’m trying to traverse (via keyboard, like a good computer ninja) over

    then I’ll have to succumb to trying to guess how long to hold Left/Right… or worse yet, use the mouse!

  2. It’s an extra keystroke to type an underscore. Over the course of one small project, this might not seem a lot, but if it’s your craft & profession, This is a lot of extra keystrokes. Plus, it would speed up your probably-inevitable-RSI.

MailChimp, I’m looking at you!

As much as I love MailChimp, I was frustrated when trying to style their embeddable signup form. All these underscores!


I’m going to start using this format for writing my code. In fact, I already have. If you look at my recently redesigned homepage and inspect the first image on the page (me standing in the subway) you’ll see the link surrounding it is class=”pants-toggle” and the image itself has class “no-pants”.

If you dig on this, implement it yourself. Either way, I want to hear what you think in the comments.

Adding SoundCloud oEmbed Support To WordPress 3

WordPress 3 is awesome.

One of my new favorite features is auto-embedding (I suppose it’s been around since 2.9 but whatever).

Unfortunately, while I was trying to embed a SoundCloud mix I was listening to, I noticed it wasn’t working for SoundCloud. The page on WordPress’ Trac for class-oembed.php suggests that SoundCloud should be supported, but the code wasn’t in my version of the file, and I didn’t feel like upgrading, so I just used the wp_oembed_add_provider() function to add support for SoundCloud auto-embedding.

Here’s my code:

wp_oembed_add_provider( ‘http://soundcloud.com/*/*’, ‘http://soundcloud.com/oembed/’);

If you want to support more than just the format http://soundcloud.com/user/track, you’ll have to look at this page on their GitHub.

Hope that helps you! It sure worked for me 🙂

Huge Zombie Botnet Threatens the Internet!

Holy crap, This is the scariest article I’ve read in months! Apparently, there is an enormous botnet created by a worm/malware called Storm. This one is particularly interesting because it’s actually attacking the researchers trying to figure it out! Attacking, in this case, is overloading their computers with so much spam and network traffic that they SHUT DOWN. Crazy!
Link to article.