<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr - jonhenshaw</title>
<link>http://snipplr.com/users/jonhenshaw</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Fri, 24 May 2013 11:51:08 GMT</pubDate>
<item>
<title>(Objective C) NSView with gradient background</title>
<link>http://snipplr.com/view/37577/nsview-with-gradient-background/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sat, 17 Jul 2010 14:39:57 GMT</pubDate>
<guid>http://snipplr.com/view/37577/nsview-with-gradient-background/</guid>
</item>
<item>
<title>(PHP) Get Current Page URL (Context) for WordPress</title>
<link>http://snipplr.com/view/25189/get-current-page-url-context-for-wordpress/</link>
<description><![CDATA[ <p>This script will return the URL for the current page you're on, including category and tag pages.</p> ]]></description>
<pubDate>Mon, 21 Dec 2009 21:26:47 GMT</pubDate>
<guid>http://snipplr.com/view/25189/get-current-page-url-context-for-wordpress/</guid>
</item>
<item>
<title>(CSS) Stop CSS Opacity From Affecting Child Elements</title>
<link>http://snipplr.com/view/17832/stop-css-opacity-from-affecting-child-elements/</link>
<description><![CDATA[ <p>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.

The solution is to create a wrapper and apply absolute positioning to a child element of the wrapper.</p> ]]></description>
<pubDate>Mon, 03 Aug 2009 07:35:45 GMT</pubDate>
<guid>http://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</title>
<link>http://snipplr.com/view/11953/how-to-flush-dns-in-mac-os-x-105-leopard/</link>
<description><![CDATA[ <p>Open Terminal and enter this command.</p> ]]></description>
<pubDate>Sat, 07 Feb 2009 13:37:52 GMT</pubDate>
<guid>http://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</title>
<link>http://snipplr.com/view/8999/manage-multiple-wordpress-sites-with-one-database-and-one-code-base/</link>
<description><![CDATA[ <p>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.</p> ]]></description>
<pubDate>Tue, 14 Oct 2008 12:26:23 GMT</pubDate>
<guid>http://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</title>
<link>http://snipplr.com/view/8490/create-symbolic-link-on-unix--linux/</link>
<description><![CDATA[ <p>Example: ln -s /usr/local/apache/logs ./logs</p> ]]></description>
<pubDate>Thu, 18 Sep 2008 19:14:15 GMT</pubDate>
<guid>http://snipplr.com/view/8490/create-symbolic-link-on-unix--linux/</guid>
</item>
<item>
<title>(PHP) Extracting text from Word Documents via PHP and COM</title>
<link>http://snipplr.com/view/8365/extracting-text-from-word-documents-via-php-and-com/</link>
<description><![CDATA[ <p>Requires an insecure, I mean Windows server (doh!)</p> ]]></description>
<pubDate>Fri, 12 Sep 2008 08:56:28 GMT</pubDate>
<guid>http://snipplr.com/view/8365/extracting-text-from-word-documents-via-php-and-com/</guid>
</item>
<item>
<title>(PHP) Convert Word Document to TXT (text) File</title>
<link>http://snipplr.com/view/8364/convert-word-document-to-txt-text-file/</link>
<description><![CDATA[ <p>Use this PHP script to read and convert a Word document to a text file</p> ]]></description>
<pubDate>Fri, 12 Sep 2008 08:41:58 GMT</pubDate>
<guid>http://snipplr.com/view/8364/convert-word-document-to-txt-text-file/</guid>
</item>
<item>
<title>(HTML) HTML Test Page for CSS Style Guide</title>
<link>http://snipplr.com/view/8121/html-test-page-for-css-style-guide/</link>
<description><![CDATA[ <p>Great page for testing the style guide for a website.</p> ]]></description>
<pubDate>Mon, 01 Sep 2008 10:12:18 GMT</pubDate>
<guid>http://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)</title>
<link>http://snipplr.com/view/7751/how-to-style-a-horizontal-rule-with-css-ie-friendly/</link>
<description><![CDATA[ <p>A good CSS example of how to style Horizontal Rule (HR) elements. It's also Internet Explorer (IE) friendly.</p> ]]></description>
<pubDate>Wed, 06 Aug 2008 20:24:35 GMT</pubDate>
<guid>http://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</title>
<link>http://snipplr.com/view/7538/howto-convert-filenames-to-all-lowercase/</link>
<description><![CDATA[ <p>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.

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. __________________________</p> ]]></description>
<pubDate>Sun, 27 Jul 2008 17:34:08 GMT</pubDate>
<guid>http://snipplr.com/view/7538/howto-convert-filenames-to-all-lowercase/</guid>
</item>
<item>
<title>(HTML) World Currency List</title>
<link>http://snipplr.com/view/7185/world-currency-list/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 09 Jul 2008 13:40:03 GMT</pubDate>
<guid>http://snipplr.com/view/7185/world-currency-list/</guid>
</item>
<item>
<title>(PHP) Download vCard Script</title>
<link>http://snipplr.com/view/5897/download-vcard-script/</link>
<description><![CDATA[ <p>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
    * URL</p> ]]></description>
<pubDate>Thu, 17 Apr 2008 12:46:36 GMT</pubDate>
<guid>http://snipplr.com/view/5897/download-vcard-script/</guid>
</item>
<item>
<title>(Django) Template Query Debug</title>
<link>http://snipplr.com/view/5741/template-query-debug/</link>
<description><![CDATA[ <p>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 satisfy all the criteria for getting debug information in your template context:

   1. Have 'django.core.context_processors.debug' in your TEMPLATE_CONTEXT_PROCESSORS setting (it was there in the default settings, last time I checked).
   2. Have your current IP in your INTERNAL_IPS setting.
   3. Use RequestContext when rendering the current template (if you're using a generic view, you're already using RequestContext).</p> ]]></description>
<pubDate>Mon, 07 Apr 2008 16:20:35 GMT</pubDate>
<guid>http://snipplr.com/view/5741/template-query-debug/</guid>
</item>
<item>
<title>(CSS) CSS Page Break</title>
<link>http://snipplr.com/view/5736/css-page-break/</link>
<description><![CDATA[ <p>auto 	Default. Insert a page break after the element if necessary
always 	Insert a page break after the element
avoid 	Avoid inserting a page break after the element
left 	Insert page breaks after the element until it reaches a blank left page
right 	Insert page breaks after the element until it reaches a blank right page</p> ]]></description>
<pubDate>Mon, 07 Apr 2008 14:06:49 GMT</pubDate>
<guid>http://snipplr.com/view/5736/css-page-break/</guid>
</item>
<item>
<title>(JavaScript) jquery IE6 Transparent PNG Fix</title>
<link>http://snipplr.com/view/5657/jquery-ie6-transparent-png-fix/</link>
<description><![CDATA[ <p>This plugin designed to fix that problem by applying appropriate filters to user specified elements, while keeping all element tags intact.

Plugin works well with both img elements within the DOM and css properties specified externally.

• It is chainable.

• Unlike some other png hack solutions, it does not replace/hide any of your html tags.

• You can revert applied changes using .iunfixpng().

• Extremely easy to use!</p> ]]></description>
<pubDate>Wed, 02 Apr 2008 09:17:36 GMT</pubDate>
<guid>http://snipplr.com/view/5657/jquery-ie6-transparent-png-fix/</guid>
</item>
<item>
<title>(JavaScript) Anti-Aliased Curvy Corners</title>
<link>http://snipplr.com/view/4941/antialiased-curvy-corners/</link>
<description><![CDATA[ <p>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.</p> ]]></description>
<pubDate>Thu, 07 Feb 2008 22:56:04 GMT</pubDate>
<guid>http://snipplr.com/view/4941/antialiased-curvy-corners/</guid>
</item>
<item>
<title>(HTML) Blood Type Drop Down List for a Web Form</title>
<link>http://snipplr.com/view/4799/blood-type-drop-down-list-for-a-web-form/</link>
<description><![CDATA[ <p>A list of blood types for an online form.</p> ]]></description>
<pubDate>Sun, 27 Jan 2008 18:16:57 GMT</pubDate>
<guid>http://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</title>
<link>http://snipplr.com/view/4798/skin-tone-drop-down-list-for-a-web-form/</link>
<description><![CDATA[ <p>A drop down list of skin tone for an online form.</p> ]]></description>
<pubDate>Sun, 27 Jan 2008 17:12:26 GMT</pubDate>
<guid>http://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</title>
<link>http://snipplr.com/view/4797/distinguishing-facial-hair-drop-down-list-for-a-web-form/</link>
<description><![CDATA[ <p>A drop down list of facial hair options for an online form.</p> ]]></description>
<pubDate>Sun, 27 Jan 2008 17:09:42 GMT</pubDate>
<guid>http://snipplr.com/view/4797/distinguishing-facial-hair-drop-down-list-for-a-web-form/</guid>
</item>
</channel>
</rss>