How to know when to drop a domain

We’ve all been there. You have a great idea for a web site and go out and grab up a domain before someone else can get to it. 5 years later the domain still has a parking page and you haven’t done anything other than pay GoDaddy 9 bucks on every anniversary of your great idea.

So now what? I’ve accumulated about 50 domains over the past few years and only developed anything significant on about 10. How do you decide when to give up a domain name?

WordPress, source code, and smart quotes

Turns out WordPress tries to make your posts look a little better by swapping out all normal quotes with smart quotes. That’s great for typography, but really bad when you’re posting source code like I often do on here. Trying to run pasted code with smart quotes in it will bring PHP down to its knees.

A quick Google search turned up a plugin called WP Untexturize. What it does is stop WordPress from swapping out smart quotes for normal quotes. Uploaded, activated, and we’re all set.

Editing a page from FireFox

Found a quick little JavaScript trick that lets you edit page content from within FireFox. Copy and paste the following into your address bar and press enter.

javascript:document.body.contentEditable='true'; document.designMode='on'; void 0

Everything on the page becomes editable. Sure, it doesn’t affect the file on server. But once you’re done you can save the resulting file onto your computer.

I checked it in FireFox 3 and it worked. No clue about other browsers.

SMF and StopForumSpam.com

Found a great site over at StopForumSpam.com. Over the past few weeks I’ve been checking registrations on a couple of my forums against their database. What I’ve found is that most of the registrations have been spammers and they’ve gotten the axe. But after deleting 15-20 per day I wanted a little more automated solution.

Read the rest of this entry »

isDivisible function for PHP

A quick function to check if a number is divisible by another.

PHP:
  1. function isDivisible($number, $divisibleBy)
  2.     {
  3.     if ($number % $divisibleBy == 0)
  4.         return true;
  5.     return false;
  6.     }