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?
December 21st, 2008 | Posted in Unfiled | Tags: dns, domain name, godaddy | No Comments
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.
December 15th, 2008 | Posted in Tips & Tricks, Web Links, WordPress | Tags: blog, code, Coding, customize, links, php, WordPress | No Comments
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.
December 7th, 2008 | Posted in Coding, Tips & Tricks, Web Links | Tags: code, Coding, firefox, javascript, links, tips | No Comments
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 »
December 3rd, 2008 | Posted in Unfiled | Tags: Coding, customize, Forums, php, SMF, spam, tips | 6 Comments
A quick function to check if a number is divisible by another.
PHP:
-
function isDivisible($number, $divisibleBy)
-
{
-
if ($number % $divisibleBy == 0)
-
return true;
-
return false;
-
}
November 15th, 2008 | Posted in Coding | Tags: Coding, php, snippet | No Comments