Here are little bits of code I found so useful that I thought others might find them useful as well.
You can use these freely. It would, however, make my day if you let me know you found it useful. You can find my email address on the About Page.
Use at your own risk. Whatever. I can't imagine how any of this could cause problems but everyone else seems to make CYA disclaimers so I'm going to be a sheeple and follow.