A Sneaky Domain Parking Trick

While making a server change today, I was reminded of a trick that I used back when getting a shared hosting account with unlimited domains was unheard of and add-on domains used to cost an additional monthly fee.

Athough there was a charge for more than one "active" domain on the account, my hosting company didn't charge for parked domains. And I figured out a way to get those parked domains to act just like add-on domains.

The "trick" involves using mod_rewrite to redirect the incoming request to the appropriate directory, by adding this to your root .htaccess file:

When UPDATE Doesn't

Several months ago I became aware of the ON DUPLICATE KEY UPDATE clause of the INSERT MySQL command. This meant that I could use a single command to insert and/or update a database record, without any additional code to determine whether or not I needed to INSERT or UPDATE. Couple that with the ON UPDATE CURRENT_TIMESTAMP option for a timestamp field and I can turn this:

~~~

Customizing Your WordPress Login

There are a number of plugins and tutorials to change the login logo for a WordPress installation, so why another one? Because changing the logo isn’t enough: you probably will also want to change the underlying link—which normally takes the user to WordPress.org.

2011 Site Update

It's been a while (2007) since I made any major changes to the site, but—as you can see—the site looks a lot different now. The design is a custom theme that I'm sorry I purchased; first, because the theme wasn't as polished as it initially appeared to be and, second, because it's not compatible with Drupal 7 and would require a serious amount of rework to make it so. I'll likely start over with something like Omega and create a similar look.

Apple Holding More Cash Than U.S. Federal Government

Astounding factoid from the BBC:

Latest figures from the US Treasury Department show that the country has an operating cash balance of $73.7bn (£45.3bn). Apple's most recent financial results put its reserves at $76.4bn.

Apple holding more cash than USA

You Don't Need Blog Module

I noticed a change today in the description for the Drupal 7 Blog module: "Enables multi-user blogs." That's a big difference from the description in D6 and D5: "Enables keeping easily and regularly updated user web pages or blogs."  (D4.7 reads "Enables keeping an easily and regularly updated web page or a blog.") Had that description been as simple as that when I first started using Drupal, I never would have enabled the module for a blog.

Google+ Spam

Alex Albert is a spammer. I bought one product from him in 2007 and I've since unsubscribed from every list he's added me to. He keeps adding me to new lists and now he's added me to a circle (I presume) in Google+. And I'm getting his updates.

The problem is that I can't just unsubscribe from his spam updates. No, when I click on the unsubscribe link, the only options I have are to unsubscribe my address from all Google+ notifications or not. Seems like overkill.

Riding A Carousel

I had an idea for a client’s site this week, where a series of images would scroll across, fade in and out, and link to another page. I’d seen carousels like this before, but I figured there was a non-Flash solution somewhere that would accomplish the task.

In Business to Make Money

A forum member recently posted:

Instead of charging  $7 for a recording , wouldn't it be better to do a upsell with another product eg a  plr you have on your hard disk. That will be so enriching and show you are over delivering. Just my personal opinion.

window.parent vs. window opener

I was banging my head against the wall last night trying to get window.parent.location to work and it turns out that window.opener.location is what I wanted to use. Getting to that point was quite a struggle, because searching Google for “window.parent.location” didn’t give me sources with its full description.

How to Find Your Facebook Profile ID

This is pretty easy. Look at the location in your address bar when you’re on your Facebook profile page: the number after “id=” is your profile (user) ID.

That wouldn’t by itself rate a blog post, but I was trying yesterday to find my profile ID and was having some difficulty because I have a username and the profile ID no longer shows.

Google found me a number of “solutions” that involved going to your photo albums, picking out a photo, and parsing the address of the photo. What a pain!

Luckily there’s an easier way:

Transferring Domains

Domain Name Registration

I'm finally getting around to transferring domains away from my long-time registrar, Dotster. I'm not exactly sure when I started using them to register my domains (April 2000?), but I believe they were my second-ever registrar, after Network Solutions.