jonhenshaw


Member since 06/27/2006

Location: Nashville, TN

Website: http://sitening.com/

45 snippets

8742 profile views

34 Comment(s) Posted

View their favorites

Profile

Achievement

first submission:submitting first snipplet popular snippet:having a snipplet with 20 favorites

jonhenshaw's Recent Snippets



« Prev 1 2
This script will return the URL for the current page you're on, including category and tag pages.
3 1082 posted 14 years ago by jonhenshaw
Open Terminal and enter this command.
1 913 posted 15 years ago by jonhenshaw
This is a simple but powerful tweak to the wp-config.php file that will make it easy to run multiple websites using one database and codebase. Simply change "yourdomain.com" with your domain and that's it. Repeat that line for new domains.
2 981 posted 15 years ago by jonhenshaw
Example: ln -s /usr/local/apache/logs ./logs
3 980 posted 15 years ago by jonhenshaw
Great page for testing the style guide for a website.
0 19067 posted 15 years ago by jonhenshaw
A good CSS example of how to style Horizontal Rule (HR) elements. It's also Internet Explorer (IE) friendly.
3 915 posted 15 years ago by jonhenshaw
Line 6 starts a loop (which ends with line 15). The ls command returns a list of filenames which are sequentially assigned to the shell variable x. The if test (lines 8 through 10) checks to see if the current filename is that of a plain file. If not...
0 877 posted 15 years ago by jonhenshaw
Features: Complies to version 2.1 of the vCard specification Supports the following attributes: * Name * Formatted Name * Phone and fax numbers * Birthday * Address * Address label * email address * notes...
6 1969 posted 15 years ago by jonhenshaw
I often find something like this lurking at the end of my base templates - it'll show you which queries were run while generating the current page, but they'll start out hidden so as not to be a pain. Of course, before this works, you'll need to s...
1 837 posted 15 years ago by jonhenshaw
curvyCorners is a free JavaScript program that will create on-the-fly rounded corners for any HTML DIV element, that look as good as any graphically created corners.
3 916 posted 16 years ago by jonhenshaw
A list of blood types for an online form.
0 6842 posted 16 years ago by jonhenshaw
A drop down list of skin tone for an online form.
0 1315 posted 16 years ago by jonhenshaw
A drop down list of facial hair options for an online form.
0 925 posted 16 years ago by jonhenshaw
A drop down list of hair color for an online form.
0 1744 posted 16 years ago by jonhenshaw
A drop down list of eye colors for an online form.
0 1894 posted 16 years ago by jonhenshaw
This is a list of the fifty most commonly spoken languages in the United States of America. The list can be used in an online form.
0 2110 posted 16 years ago by jonhenshaw
Drop down list for resident status for an online form.
0 1216 posted 16 years ago by jonhenshaw
A comprehensive list of countries for an online form.
16 4231 posted 16 years ago by jonhenshaw
Here's a quick list for collecting the race/ethnicity of a user in an online form.
0 2958 posted 16 years ago by jonhenshaw
Getting SuperSleight running on a page is quite straightforward, you just need to link the supplied JavaScript file into your document inside conditional comments so that it is delivered to only Internet Explorer 6 or older.
3 913 posted 16 years ago by jonhenshaw
The selector portion of the CSS rule targets which XHTML tags/classes this rule will be applied to. At first glance, it looks like all img tags as well as all tags with a class of "png". You’ll notice the * html in front of both of these. Wait, the...
15 1880 posted 16 years ago by jonhenshaw
Step 1: Copy and paste the e-mail Form Code into a 'contact.php' page (must be a html/php page on a server that allows php!). Step 2: Copy n paste the sendeail.php code into a new file. Change the YourEmail section to include your email address. T...
3 1053 posted 16 years ago by jonhenshaw
Good info here too: http://www.ilisys.com.au/support/linux-password-protect/
2 1287 posted 16 years ago by jonhenshaw
This will create a State select list for Textpattern if you're using the zem_contact_reborn form plugin
0 945 posted 16 years ago by jonhenshaw
This randomly displays 1 of the 5 arrays (amount of arrays to choose from can be reduced or increased)
3 774 posted 16 years ago by jonhenshaw
Textpattern's default page title markup -- txp:page_title -- always places the site name in front of the individual page name. This is irritating, because I prefer to have the interior content title come before the site title itself -- it just makes...
3 890 posted 16 years ago by jonhenshaw
Over time, your Mac's Mail program can start to feel sluggish because, like any database, over time it needs to optimized.
4 786 posted 16 years ago by jonhenshaw
Excellent Script for opening new windows from links while adhering to modern HTML/XHTML standards. Simple put rel="nofollow" in the anchor and link to the script within the HEAD. I prefer to remove the text that states the link opens in an externa...
1 949 posted 16 years ago by jonhenshaw
Enter this command in Terminal to restart Apache. Especially useful after you've made changes to the hosts file.
2 768 posted 16 years ago by jonhenshaw
Run this command in the Terminal on Mac OS X to flush the DNS cache on your computer. This is especially helpful when making changes to the host file.
2 1165 posted 16 years ago by jonhenshaw
« Prev 1 2