<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Snipplr</title>
    <description>Recent snippets posted on Snipplr.com</description>
    <link>https://snipplr.com/</link>
    <lastBuildDate>Tue, 09 Jun 2026 12:33:28 +0000</lastBuildDate>
    <item>
      <title>(Objective C) NSView with gradient background - jonhenshaw</title>
      <link>https://snipplr.com/view/37577/nsview-with-gradient-background</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Sat, 17 Jul 2010 14:39:57 UTC</pubDate>
      <guid>https://snipplr.com/view/37577/nsview-with-gradient-background</guid>
    </item>
    <item>
      <title>(PHP) Get Current Page URL (Context) for WordPress - jonhenshaw</title>
      <link>https://snipplr.com/view/25189/get-current-page-url-context-for-wordpress</link>
      <description>&lt;p&gt;This script will return the URL for the current page you're on, including category and tag pages.&lt;/p&gt;</description>
      <pubDate>Mon, 21 Dec 2009 21:26:47 UTC</pubDate>
      <guid>https://snipplr.com/view/25189/get-current-page-url-context-for-wordpress</guid>
    </item>
    <item>
      <title>(CSS) Stop CSS Opacity From Affecting Child Elements - jonhenshaw</title>
      <link>https://snipplr.com/view/17832/stop-css-opacity-from-affecting-child-elements</link>
      <description>&lt;p&gt;By default, applying opacity to an HTML element will make all of it's child elements (the content inside of the object) to also get the opacity style applied to it. Here's a clever example of how to override that rendering output in browsers.&#13;
&#13;
The solution is to create a wrapper and apply absolute positioning to a child element of the wrapper.&lt;/p&gt;</description>
      <pubDate>Mon, 03 Aug 2009 07:35:45 UTC</pubDate>
      <guid>https://snipplr.com/view/17832/stop-css-opacity-from-affecting-child-elements</guid>
    </item>
    <item>
      <title>(Bash) How to Flush DNS in Mac OS X 10.5 Leopard - jonhenshaw</title>
      <link>https://snipplr.com/view/11953/how-to-flush-dns-in-mac-os-x-105-leopard</link>
      <description>&lt;p&gt;Open Terminal and enter this command.&lt;/p&gt;</description>
      <pubDate>Sat, 07 Feb 2009 13:37:52 UTC</pubDate>
      <guid>https://snipplr.com/view/11953/how-to-flush-dns-in-mac-os-x-105-leopard</guid>
    </item>
    <item>
      <title>(PHP) Manage Multiple WordPress Sites With One Database and One Code Base - jonhenshaw</title>
      <link>https://snipplr.com/view/8999/manage-multiple-wordpress-sites-with-one-database-and-one-code-base</link>
      <description>&lt;p&gt;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.&lt;/p&gt;</description>
      <pubDate>Tue, 14 Oct 2008 12:26:23 UTC</pubDate>
      <guid>https://snipplr.com/view/8999/manage-multiple-wordpress-sites-with-one-database-and-one-code-base</guid>
    </item>
    <item>
      <title>(Bash) Create Symbolic Link on Unix / Linux - jonhenshaw</title>
      <link>https://snipplr.com/view/8490/create-symbolic-link-on-unix--linux</link>
      <description>&lt;p&gt;Example: ln -s /usr/local/apache/logs ./logs&lt;/p&gt;</description>
      <pubDate>Thu, 18 Sep 2008 19:14:15 UTC</pubDate>
      <guid>https://snipplr.com/view/8490/create-symbolic-link-on-unix--linux</guid>
    </item>
    <item>
      <title>(PHP) Extracting text from Word Documents via PHP and COM - jonhenshaw</title>
      <link>https://snipplr.com/view/8365/extracting-text-from-word-documents-via-php-and-com</link>
      <description>&lt;p&gt;Requires an insecure, I mean Windows server (doh!)&lt;/p&gt;</description>
      <pubDate>Fri, 12 Sep 2008 08:56:28 UTC</pubDate>
      <guid>https://snipplr.com/view/8365/extracting-text-from-word-documents-via-php-and-com</guid>
    </item>
    <item>
      <title>(HTML) HTML Test Page for CSS Style Guide - jonhenshaw</title>
      <link>https://snipplr.com/view/8121/html-test-page-for-css-style-guide</link>
      <description>&lt;p&gt;Great page for testing the style guide for a website.&lt;/p&gt;</description>
      <pubDate>Mon, 01 Sep 2008 10:12:18 UTC</pubDate>
      <guid>https://snipplr.com/view/8121/html-test-page-for-css-style-guide</guid>
    </item>
    <item>
      <title>(CSS) How To Style A Horizontal Rule With CSS (IE Friendly) - jonhenshaw</title>
      <link>https://snipplr.com/view/7751/how-to-style-a-horizontal-rule-with-css-ie-friendly</link>
      <description>&lt;p&gt;A good CSS example of how to style Horizontal Rule (HR) elements. It's also Internet Explorer (IE) friendly.&lt;/p&gt;</description>
      <pubDate>Wed, 06 Aug 2008 20:24:35 UTC</pubDate>
      <guid>https://snipplr.com/view/7751/how-to-style-a-horizontal-rule-with-css-ie-friendly</guid>
    </item>
    <item>
      <title>(Bash) Howto Convert Filenames to All Lowercase - jonhenshaw</title>
      <link>https://snipplr.com/view/7538/howto-convert-filenames-to-all-lowercase</link>
      <description>&lt;p&gt;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, the remainder of the statements in the current loop iteration are skipped.&#13;
&#13;
If line 11 is to be executed we know that we have an ordinary file. Using tr we convert the filename to lowercase and assign the new name to the shell variable lc. Line 12 then checks to see if the lowercase version of the name differs from the original. If it does, line 13 is executed to change the name of the original file to the new lowercase name. The -i option causes the mv to prompt for confirmation if executing the command would overwrite an existing filename. __________________________&lt;/p&gt;</description>
      <pubDate>Sun, 27 Jul 2008 17:34:08 UTC</pubDate>
      <guid>https://snipplr.com/view/7538/howto-convert-filenames-to-all-lowercase</guid>
    </item>
    <item>
      <title>(HTML) World Currency List - jonhenshaw</title>
      <link>https://snipplr.com/view/7185/world-currency-list</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Wed, 09 Jul 2008 13:40:03 UTC</pubDate>
      <guid>https://snipplr.com/view/7185/world-currency-list</guid>
    </item>
    <item>
      <title>(PHP) Download vCard Script - jonhenshaw</title>
      <link>https://snipplr.com/view/5897/download-vcard-script</link>
      <description>&lt;p&gt;Features:  	 Complies to version 2.1 of the vCard specification&#13;
Supports the following attributes:&#13;
&#13;
    * Name&#13;
    * Formatted Name&#13;
    * Phone and fax numbers&#13;
    * Birthday&#13;
    * Address&#13;
    * Address label&#13;
    * email address&#13;
    * notes&#13;
    * URL&lt;/p&gt;</description>
      <pubDate>Thu, 17 Apr 2008 12:46:36 UTC</pubDate>
      <guid>https://snipplr.com/view/5897/download-vcard-script</guid>
    </item>
    <item>
      <title>(Django) Template Query Debug - jonhenshaw</title>
      <link>https://snipplr.com/view/5741/template-query-debug</link>
      <description>&lt;p&gt;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.&#13;
&#13;
Of course, before this works, you'll need to satisfy all the criteria for getting debug information in your template context:&#13;
&#13;
   1. Have 'django.core.context_processors.debug' in your TEMPLATE_CONTEXT_PROCESSORS setting (it was there in the default settings, last time I checked).&#13;
   2. Have your current IP in your INTERNAL_IPS setting.&#13;
   3. Use RequestContext when rendering the current template (if you're using a generic view, you're already using RequestContext).&lt;/p&gt;</description>
      <pubDate>Mon, 07 Apr 2008 16:20:35 UTC</pubDate>
      <guid>https://snipplr.com/view/5741/template-query-debug</guid>
    </item>
    <item>
      <title>(JavaScript) Anti-Aliased Curvy Corners - jonhenshaw</title>
      <link>https://snipplr.com/view/4941/antialiased-curvy-corners</link>
      <description>&lt;p&gt;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.&lt;/p&gt;</description>
      <pubDate>Thu, 07 Feb 2008 22:56:04 UTC</pubDate>
      <guid>https://snipplr.com/view/4941/antialiased-curvy-corners</guid>
    </item>
    <item>
      <title>(HTML) Blood Type Drop Down List for a Web Form - jonhenshaw</title>
      <link>https://snipplr.com/view/4799/blood-type-drop-down-list-for-a-web-form</link>
      <description>&lt;p&gt;A list of blood types for an online form.&lt;/p&gt;</description>
      <pubDate>Sun, 27 Jan 2008 18:16:57 UTC</pubDate>
      <guid>https://snipplr.com/view/4799/blood-type-drop-down-list-for-a-web-form</guid>
    </item>
    <item>
      <title>(HTML) Skin Tone Drop Down List for a Web Form - jonhenshaw</title>
      <link>https://snipplr.com/view/4798/skin-tone-drop-down-list-for-a-web-form</link>
      <description>&lt;p&gt;A drop down list of skin tone for an online form.&lt;/p&gt;</description>
      <pubDate>Sun, 27 Jan 2008 17:12:26 UTC</pubDate>
      <guid>https://snipplr.com/view/4798/skin-tone-drop-down-list-for-a-web-form</guid>
    </item>
    <item>
      <title>(HTML) Distinguishing Facial Hair Drop Down List for a Web Form - jonhenshaw</title>
      <link>https://snipplr.com/view/4797/distinguishing-facial-hair-drop-down-list-for-a-web-form</link>
      <description>&lt;p&gt;A drop down list of facial hair options for an online form.&lt;/p&gt;</description>
      <pubDate>Sun, 27 Jan 2008 17:09:42 UTC</pubDate>
      <guid>https://snipplr.com/view/4797/distinguishing-facial-hair-drop-down-list-for-a-web-form</guid>
    </item>
    <item>
      <title>(HTML) Hair Color Drop Down List for a Web Form - jonhenshaw</title>
      <link>https://snipplr.com/view/4796/hair-color-drop-down-list-for-a-web-form</link>
      <description>&lt;p&gt;A drop down list of hair color for an online form.&lt;/p&gt;</description>
      <pubDate>Sun, 27 Jan 2008 17:06:01 UTC</pubDate>
      <guid>https://snipplr.com/view/4796/hair-color-drop-down-list-for-a-web-form</guid>
    </item>
    <item>
      <title>(HTML) Eye Color Drop Down List for a Web Form - jonhenshaw</title>
      <link>https://snipplr.com/view/4795/eye-color-drop-down-list-for-a-web-form</link>
      <description>&lt;p&gt;A drop down list of eye colors for an online form.&lt;/p&gt;</description>
      <pubDate>Sun, 27 Jan 2008 17:02:45 UTC</pubDate>
      <guid>https://snipplr.com/view/4795/eye-color-drop-down-list-for-a-web-form</guid>
    </item>
    <item>
      <title>(HTML) 50 Most Common Languages Spoken in the United States - Drop Down List for an Online Form - jonhenshaw</title>
      <link>https://snipplr.com/view/4794/50-most-common-languages-spoken-in-the-united-states--drop-down-list-for-an-online-form</link>
      <description>&lt;p&gt;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.&lt;/p&gt;</description>
      <pubDate>Sun, 27 Jan 2008 16:57:33 UTC</pubDate>
      <guid>https://snipplr.com/view/4794/50-most-common-languages-spoken-in-the-united-states--drop-down-list-for-an-online-form</guid>
    </item>
    <item>
      <title>(HTML) Resident Status Drop Down List for Web Forms - jonhenshaw</title>
      <link>https://snipplr.com/view/4793/resident-status-drop-down-list-for-web-forms</link>
      <description>&lt;p&gt;Drop down list for resident status for an online form.&lt;/p&gt;</description>
      <pubDate>Sun, 27 Jan 2008 16:41:45 UTC</pubDate>
      <guid>https://snipplr.com/view/4793/resident-status-drop-down-list-for-web-forms</guid>
    </item>
    <item>
      <title>(HTML) Country Drop Down List for Web Forms - jonhenshaw</title>
      <link>https://snipplr.com/view/4792/country-drop-down-list-for-web-forms</link>
      <description>&lt;p&gt;A comprehensive list of countries for an online form.&lt;/p&gt;</description>
      <pubDate>Sun, 27 Jan 2008 16:34:22 UTC</pubDate>
      <guid>https://snipplr.com/view/4792/country-drop-down-list-for-web-forms</guid>
    </item>
    <item>
      <title>(HTML) Race / Ethnicity Drop Down List for Web Forms - jonhenshaw</title>
      <link>https://snipplr.com/view/4791/race--ethnicity-drop-down-list-for-web-forms</link>
      <description>&lt;p&gt;Here's a quick list for collecting the race/ethnicity of a user in an online form.&lt;/p&gt;</description>
      <pubDate>Sun, 27 Jan 2008 16:28:05 UTC</pubDate>
      <guid>https://snipplr.com/view/4791/race--ethnicity-drop-down-list-for-web-forms</guid>
    </item>
    <item>
      <title>(JavaScript) IE 6 Transparent PNG Fix - SuperSleight - jonhenshaw</title>
      <link>https://snipplr.com/view/4224/ie-6-transparent-png-fix--supersleight</link>
      <description>&lt;p&gt;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.&lt;/p&gt;</description>
      <pubDate>Fri, 30 Nov 2007 22:53:32 UTC</pubDate>
      <guid>https://snipplr.com/view/4224/ie-6-transparent-png-fix--supersleight</guid>
    </item>
    <item>
      <title>(CSS) CSS PNG Image Fix for IE - jonhenshaw</title>
      <link>https://snipplr.com/view/4090/css-png-image-fix-for-ie</link>
      <description>&lt;p&gt;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, there is no â€œanytagâ€ preceding the html tag, so this wonâ€™t get applied! True. For all non-crappy (that is a pro term by the way) browsers, this rule wonâ€™t get applied. However, since IE6 is a pile, it thinks that there is a tag before the html tag, so it will apply this rule. Great! Now IE6 is the only browser that will use this rule.&lt;/p&gt;</description>
      <pubDate>Thu, 08 Nov 2007 08:22:32 UTC</pubDate>
      <guid>https://snipplr.com/view/4090/css-png-image-fix-for-ie</guid>
    </item>
    <item>
      <title>(PHP) Email Form to Send Message on Web Page - jonhenshaw</title>
      <link>https://snipplr.com/view/3886/email-form-to-send-message-on-web-page</link>
      <description>&lt;p&gt;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!).&#13;
&#13;
Step 2: Copy n paste the sendeail.php code into a new file. Change the YourEmail section to include your email address. Then check (or modify) the link at the bottom (contact.php) to point to the desired Next Page. Save the file as 'sendeail.php' (as ASCII file).&#13;
&#13;
Step 3: Upload both files as ASCII i.e. upload the same way as .html files. Be sure both files are in the same folder on the server.&lt;/p&gt;</description>
      <pubDate>Fri, 12 Oct 2007 15:35:24 UTC</pubDate>
      <guid>https://snipplr.com/view/3886/email-form-to-send-message-on-web-page</guid>
    </item>
    <item>
      <title>(Bash) Password Protect Folder / Directory with htaccess and htpasswd on Apache and Linux / Unix - jonhenshaw</title>
      <link>https://snipplr.com/view/3791/password-protect-folder--directory-with-htaccess-and-htpasswd-on-apache-and-linux--unix</link>
      <description>&lt;p&gt;Good info here too: http://www.ilisys.com.au/support/linux-password-protect/&lt;/p&gt;</description>
      <pubDate>Wed, 26 Sep 2007 21:19:43 UTC</pubDate>
      <guid>https://snipplr.com/view/3791/password-protect-folder--directory-with-htaccess-and-htpasswd-on-apache-and-linux--unix</guid>
    </item>
    <item>
      <title>(Textpattern) Textpattern State List for Zem Contact (zem_contact_reborn) - jonhenshaw</title>
      <link>https://snipplr.com/view/3591/textpattern-state-list-for-zem-contact-zemcontactreborn</link>
      <description>&lt;p&gt;This will create a State select list for Textpattern if you're using the zem_contact_reborn form plugin&lt;/p&gt;</description>
      <pubDate>Wed, 29 Aug 2007 08:03:13 UTC</pubDate>
      <guid>https://snipplr.com/view/3591/textpattern-state-list-for-zem-contact-zemcontactreborn</guid>
    </item>
    <item>
      <title>(PHP) Show Random Image, File and/or HTML - jonhenshaw</title>
      <link>https://snipplr.com/view/3582/show-random-image-file-andor-html</link>
      <description>&lt;p&gt;This randomly displays 1 of the 5 arrays (amount of arrays to choose from can be reduced or increased)&lt;/p&gt;</description>
      <pubDate>Tue, 28 Aug 2007 11:08:18 UTC</pubDate>
      <guid>https://snipplr.com/view/3582/show-random-image-file-andor-html</guid>
    </item>
    <item>
      <title>(Textpattern) Reverse the Default Page Title Order in Textpattern - jonhenshaw</title>
      <link>https://snipplr.com/view/3445/reverse-the-default-page-title-order-in-textpattern</link>
      <description>&lt;p&gt;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 more sense that way and it's a lot more search engine friendly.&#13;
&#13;
Use this code to replace txp:page_title on the page template to get the desired effect.&lt;/p&gt;</description>
      <pubDate>Fri, 03 Aug 2007 11:30:47 UTC</pubDate>
      <guid>https://snipplr.com/view/3445/reverse-the-default-page-title-order-in-textpattern</guid>
    </item>
    <item>
      <title>(Bash) Optimize Mac OS X Mail.app - jonhenshaw</title>
      <link>https://snipplr.com/view/3305/optimize-mac-os-x-mailapp</link>
      <description>&lt;p&gt;Over time, your Mac's Mail program can start to feel sluggish because, like any database, over time it needs to optimized.&lt;/p&gt;</description>
      <pubDate>Sun, 15 Jul 2007 11:15:17 UTC</pubDate>
      <guid>https://snipplr.com/view/3305/optimize-mac-os-x-mailapp</guid>
    </item>
    <item>
      <title>(CSS) Turn Off Box Element and Positioning Outline (for Firefox and Safari) - jonhenshaw</title>
      <link>https://snipplr.com/view/3097/turn-off-box-element-and-positioning-outline-for-firefox-and-safari</link>
      <description>&lt;p&gt;Turns off the outline that often shows up in positioned blocks on Firefox and Safari&lt;/p&gt;</description>
      <pubDate>Fri, 29 Jun 2007 15:32:50 UTC</pubDate>
      <guid>https://snipplr.com/view/3097/turn-off-box-element-and-positioning-outline-for-firefox-and-safari</guid>
    </item>
    <item>
      <title>(JavaScript) Open New Window Using REL External Instead of Deprecated Target Attribute - jonhenshaw</title>
      <link>https://snipplr.com/view/3047/open-new-window-using-rel-external-instead-of-deprecated-target-attribute</link>
      <description>&lt;p&gt;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.&#13;
&#13;
I prefer to remove the text that states the link opens in an external windows. To do that, simply change this part of the last line from this:&#13;
("rel","external"," (external website, opens in a new window)")&#13;
&#13;
to this:&#13;
("rel","external","")&lt;/p&gt;</description>
      <pubDate>Tue, 26 Jun 2007 14:52:15 UTC</pubDate>
      <guid>https://snipplr.com/view/3047/open-new-window-using-rel-external-instead-of-deprecated-target-attribute</guid>
    </item>
    <item>
      <title>(Bash) Apache Graceful Restart - jonhenshaw</title>
      <link>https://snipplr.com/view/2658/apache-graceful-restart</link>
      <description>&lt;p&gt;Enter this command in Terminal to restart Apache. Especially useful after you've made changes to the hosts file.&lt;/p&gt;</description>
      <pubDate>Wed, 16 May 2007 12:17:54 UTC</pubDate>
      <guid>https://snipplr.com/view/2658/apache-graceful-restart</guid>
    </item>
    <item>
      <title>(Bash) How to Flush Your DNS Cache on Apple Mac OS X - jonhenshaw</title>
      <link>https://snipplr.com/view/2587/how-to-flush-your-dns-cache-on-apple-mac-os-x</link>
      <description>&lt;p&gt;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.&lt;/p&gt;</description>
      <pubDate>Wed, 02 May 2007 15:18:42 UTC</pubDate>
      <guid>https://snipplr.com/view/2587/how-to-flush-your-dns-cache-on-apple-mac-os-x</guid>
    </item>
    <item>
      <title>(Rails) Ruby on Rails 301 Redirect - jonhenshaw</title>
      <link>https://snipplr.com/view/2497/ruby-on-rails-301-redirect</link>
      <description>&lt;p&gt;This redirects visitors to a new URL using a 301 redirect. Using a 301 redirect is the safest way to let search engines like Google, Yahoo!, Live and Ask know your address has changed.&lt;/p&gt;</description>
      <pubDate>Mon, 16 Apr 2007 21:50:50 UTC</pubDate>
      <guid>https://snipplr.com/view/2497/ruby-on-rails-301-redirect</guid>
    </item>
    <item>
      <title>(Java) JSP (Java) Redirect - jonhenshaw</title>
      <link>https://snipplr.com/view/2495/jsp-java-redirect</link>
      <description>&lt;p&gt;This redirects visitors to a new URL using a 301 redirect. Using a 301 redirect is the safest way to let search engines like Google, Yahoo!, Live and Ask know your address has changed.&lt;/p&gt;</description>
      <pubDate>Mon, 16 Apr 2007 21:48:53 UTC</pubDate>
      <guid>https://snipplr.com/view/2495/jsp-java-redirect</guid>
    </item>
    <item>
      <title>(ASP) ASP .NET 301 Redirect - jonhenshaw</title>
      <link>https://snipplr.com/view/2494/asp-net-301-redirect</link>
      <description>&lt;p&gt;This redirects visitors to a new URL using a 301 redirect. Using a 301 redirect is the safest way to let search engines like Google, Yahoo!, Live and Ask know your address has changed.&lt;/p&gt;</description>
      <pubDate>Mon, 16 Apr 2007 21:47:17 UTC</pubDate>
      <guid>https://snipplr.com/view/2494/asp-net-301-redirect</guid>
    </item>
    <item>
      <title>(ASP) ASP 301 Redirect - jonhenshaw</title>
      <link>https://snipplr.com/view/2493/asp-301-redirect</link>
      <description>&lt;p&gt;This redirects visitors to a new URL using a 301 redirect. Using a 301 redirect is the safest way to let search engines like Google, Yahoo!, Live and Ask know your address has changed.&lt;/p&gt;</description>
      <pubDate>Mon, 16 Apr 2007 21:46:12 UTC</pubDate>
      <guid>https://snipplr.com/view/2493/asp-301-redirect</guid>
    </item>
    <item>
      <title>(ColdFusion) ColdFusion 301 Redirect - jonhenshaw</title>
      <link>https://snipplr.com/view/2492/coldfusion-301-redirect</link>
      <description>&lt;p&gt;This redirects visitors to a new URL using a 301 redirect. Using a 301 redirect is the safest way to let search engines like Google, Yahoo!, Live and Ask know your address has changed.&lt;/p&gt;</description>
      <pubDate>Mon, 16 Apr 2007 21:45:18 UTC</pubDate>
      <guid>https://snipplr.com/view/2492/coldfusion-301-redirect</guid>
    </item>
    <item>
      <title>(CSS) Transparent PNG Fix for IE 5.5 &amp; 6 - jonhenshaw</title>
      <link>https://snipplr.com/view/2243/transparent-png-fix-for-ie-55--6</link>
      <description>&lt;p&gt;This is an excellent solution for fixing IE 6's inability to display transparent PNGs correctly.&#13;
&#13;
Step 1: Include the following conditional comment the HEAD area of your document. You will need to update the CSS selector and also the path to whereever you put the .htc file.&#13;
&#13;
&amp;lt;!--[if lte IE 6]&amp;gt;&#13;
&amp;lt;style type="text/css"&amp;gt;&#13;
&amp;#160;&amp;#160;img { behavior: url(/css/iepngfix.htc) }&#13;
&amp;lt;/style&amp;gt;&#13;
&amp;lt;![endif]--&amp;gt;&#13;
&#13;
Step 2: Create a transparent GIF that's 1x1 and save it as blank.gif in your images folder.&#13;
&#13;
Step 3. Copy the source below and save it in a file called iepngfix.htc and place it in your CSS folder. Note, you may need to update the images folder to match the folder you're using on your site.&#13;
&#13;
That's it. Once you have everything in place and assuming everything is referenced correclty, PNG transparency will work in IE 6.&lt;/p&gt;</description>
      <pubDate>Wed, 07 Mar 2007 12:10:25 UTC</pubDate>
      <guid>https://snipplr.com/view/2243/transparent-png-fix-for-ie-55--6</guid>
    </item>
    <item>
      <title>(PHP) Simple PHP randomizer - jonhenshaw</title>
      <link>https://snipplr.com/view/2023/simple-php-randomizer</link>
      <description>&lt;p&gt;Visit the link for instructions on how to use it.&lt;/p&gt;</description>
      <pubDate>Wed, 24 Jan 2007 14:57:58 UTC</pubDate>
      <guid>https://snipplr.com/view/2023/simple-php-randomizer</guid>
    </item>
    <item>
      <title>(CSS) CSS nowrap - Prevent Text From Wrapping in HTML - jonhenshaw</title>
      <link>https://snipplr.com/view/1948/css-nowrap--prevent-text-from-wrapping-in-html</link>
      <description>&lt;p&gt;This handy CSS attribute can be used to keep text from wrapping. It can also be used to keep other HTML elements from wrapping. Simply apply the white-space:nowrap attribute to any HTML element to force text and images to not return within a specified blog.&#13;
&#13;
Something to note, IE6 can be buggy when this is used with an unordered list â€“ but when isn't IE6 buggy?&lt;/p&gt;</description>
      <pubDate>Mon, 08 Jan 2007 08:02:24 UTC</pubDate>
      <guid>https://snipplr.com/view/1948/css-nowrap--prevent-text-from-wrapping-in-html</guid>
    </item>
    <item>
      <title>(CSS) Internet Explorer (IE6) CSS Hover - jonhenshaw</title>
      <link>https://snipplr.com/view/1912/internet-explorer-ie6-css-hover</link>
      <description>&lt;p&gt;IE6 and before doesn't support :hover in CSS (except for anchors). You can use this script to make hovers work in IE. Just add the following line to your stylesheet (this assumes the path of the file -- you may need to change it to reflect your paths).&#13;
&#13;
body { behavior:url(&amp;quot;csshover.htc&amp;quot;); }&lt;/p&gt;</description>
      <pubDate>Mon, 01 Jan 2007 20:17:07 UTC</pubDate>
      <guid>https://snipplr.com/view/1912/internet-explorer-ie6-css-hover</guid>
    </item>
    <item>
      <title>(JavaScript) Prototype Based JavaScript Tooltip - jonhenshaw</title>
      <link>https://snipplr.com/view/1441/prototype-based-javascript-tooltip</link>
      <description>&lt;p&gt;JavaScript Tooltip libraries number about as many as rounded CSS corner libraries.&#13;
&#13;
Jonathan Weiss thought the ones he saw were "too complicated and bloated, did just too much and most of the time were still not flexible enough with the tooltip. So I decided to create my own library that is based on prototype.js".&lt;/p&gt;</description>
      <pubDate>Fri, 20 Oct 2006 17:22:09 UTC</pubDate>
      <guid>https://snipplr.com/view/1441/prototype-based-javascript-tooltip</guid>
    </item>
    <item>
      <title>(JavaScript) Opening New Windows With JavaScript, Version 1.2 - jonhenshaw</title>
      <link>https://snipplr.com/view/1402/opening-new-windows-with-javascript-version-12</link>
      <description>&lt;p&gt;A an excellent script for allowing links to open new windows while keeping the code standards compliant.&#13;
&#13;
If you look at the last line of the script, you will notice that the JSTarget.init() function takes three parameters (all optional). This is what makes this script more flexible than the previous versions.&lt;/p&gt;</description>
      <pubDate>Thu, 12 Oct 2006 19:48:00 UTC</pubDate>
      <guid>https://snipplr.com/view/1402/opening-new-windows-with-javascript-version-12</guid>
    </item>
    <item>
      <title>(JavaScript) Browser Detect (from quirksmode) - jonhenshaw</title>
      <link>https://snipplr.com/view/1395/browser-detect-from-quirksmode</link>
      <description>&lt;p&gt;A useful but often overrated JavaScript function is the browser detect. Sometimes you want to give specific instructions or load a new page in case the viewer uses, for instance, Safari.&#13;
&#13;
Copy this script into your JavaScript files. It works immediately, and you can query three properties of the BrowserDetect object:&#13;
&#13;
    * Browser name: BrowserDetect.browser&#13;
    * Browser version: BrowserDetect.version&#13;
    * OS name: BrowserDetect.OS&lt;/p&gt;</description>
      <pubDate>Thu, 12 Oct 2006 06:52:37 UTC</pubDate>
      <guid>https://snipplr.com/view/1395/browser-detect-from-quirksmode</guid>
    </item>
    <item>
      <title>(JavaScript) Automatic Date for Footer - jonhenshaw</title>
      <link>https://snipplr.com/view/1394/automatic-date-for-footer</link>
      <description>&lt;p&gt;You can use this script to always keep the copyright notice on the footer of your website current. For example, instead of having to update the year at the beginning of each year, this script will display current year. I'm sure there's an easier way of doing this, but I ran across it tonight and thought it was a clever idea. When putting it in your code, it would look something like "Copyright 2001[script goes here]"&lt;/p&gt;</description>
      <pubDate>Wed, 11 Oct 2006 19:56:19 UTC</pubDate>
      <guid>https://snipplr.com/view/1394/automatic-date-for-footer</guid>
    </item>
    <item>
      <title>(PHP) Reddit for WordPress Plugin - jonhenshaw</title>
      <link>https://snipplr.com/view/1066/reddit-for-wordpress-plugin</link>
      <description>&lt;p&gt;This is a terribly simple but useful WordPress plugin that puts an interactive counter-style Reddit interface on your blog â€” but only when someone has already bookmarked the URL.  It looks rather lame when everything isn't bookmarked, but the JavaScript interface with the arrows is a definate enhancement over a simple icon.  So why not show it only when applicable?  I'll narcissistically bookmark this post to demonstrate.  Just call the function "reddit_this()" and specify one of the styles enumerated here (http://reddit.com/buttons).  Enjoy!&lt;/p&gt;</description>
      <pubDate>Tue, 12 Sep 2006 20:41:12 UTC</pubDate>
      <guid>https://snipplr.com/view/1066/reddit-for-wordpress-plugin</guid>
    </item>
    <item>
      <title>(XML) Setting Up A Virtual Host (vhost) on Mac OS X and Gracefully Restarting Apache Web Server - jonhenshaw</title>
      <link>https://snipplr.com/view/1058/setting-up-a-virtual-host-vhost-on-mac-os-x-and-gracefully-restarting-apache-web-server</link>
      <description>&lt;p&gt;A great way to work on website in Mac OS X is to set up a vhost. Doing so is very easy. In System Preferences click on Sharing and then make sure you have Personal Web Sharing turned on. Then, open or create your vhosts.conf file (/private/etc/httpd/users/vhosts.conf). Enter the VirtualHost information (see snippet below). The ServerName can be anything and the DocumentRoot should be the path to the folder where you want to build the website. Lastly, open the Terminal and enter the command below. It will restart Apache and will enable your new vhost.&lt;/p&gt;</description>
      <pubDate>Mon, 11 Sep 2006 17:49:11 UTC</pubDate>
      <guid>https://snipplr.com/view/1058/setting-up-a-virtual-host-vhost-on-mac-os-x-and-gracefully-restarting-apache-web-server</guid>
    </item>
  </channel>
</rss>
