<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr - DaveChild</title>
<link>http://snipplr.com/users/DaveChild</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Wed, 22 May 2013 19:58:01 GMT</pubDate>
<item>
<title>(JavaScript) JavaScript Highlight Inline Styles</title>
<link>http://snipplr.com/view/19507/javascript-highlight-inline-styles/</link>
<description><![CDATA[ <p>Puts a red border around anything with an inline style. Prefix with "javascript:" and paste into the address bar to run on a page directly, or run with a load event.</p> ]]></description>
<pubDate>Thu, 10 Sep 2009 10:07:30 GMT</pubDate>
<guid>http://snipplr.com/view/19507/javascript-highlight-inline-styles/</guid>
</item>
<item>
<title>(PHP) PHP SoftHyphens Function</title>
<link>http://snipplr.com/view/19426/php-softhyphens-function/</link>
<description><![CDATA[ <p>This function will add soft hyphens after every 3rd character in words of over 10 characters. It will not leave fewer than three characters following a soft hyphen.

Known bugs: Adds soft hyphens to URLs and within HTML tags.</p> ]]></description>
<pubDate>Wed, 09 Sep 2009 08:56:20 GMT</pubDate>
<guid>http://snipplr.com/view/19426/php-softhyphens-function/</guid>
</item>
<item>
<title>(JavaScript) JavaScript View Page Source</title>
<link>http://snipplr.com/view/14904/javascript-view-page-source/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Mon, 11 May 2009 08:46:28 GMT</pubDate>
<guid>http://snipplr.com/view/14904/javascript-view-page-source/</guid>
</item>
<item>
<title>(PHP) MODx Snippet: Tweet This</title>
<link>http://snipplr.com/view/14118/modx-snippet-tweet-this/</link>
<description><![CDATA[ <p>This snippet returns a link to twitter for the user to tweet the current page. URL is TinyURLed automatically (and tinyurls are cached indefinitely in assets/cache/tweetthis.txt).

Simply paste code into a new snippet called "TweetThis". Call it like so:

[[TweetThis? &amp;name=\`@DaveChild\` &amp;text=\`Tweet This!\` &amp;id=\`7\` ]]

All parameters are optional. ID defaults to current document.</p> ]]></description>
<pubDate>Fri, 17 Apr 2009 08:40:18 GMT</pubDate>
<guid>http://snipplr.com/view/14118/modx-snippet-tweet-this/</guid>
</item>
<item>
<title>(JavaScript) JavaScript Apply Max-Width (in Pixels) in IE</title>
<link>http://snipplr.com/view/11840/javascript-apply-maxwidth-in-pixels-in-ie/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 04 Feb 2009 10:46:57 GMT</pubDate>
<guid>http://snipplr.com/view/11840/javascript-apply-maxwidth-in-pixels-in-ie/</guid>
</item>
<item>
<title>(PHP) PHP Strip Signature from Email</title>
<link>http://snipplr.com/view/11598/php-strip-signature-from-email/</link>
<description><![CDATA[ <p>If reading email from a POP box with PHP, you can use this to strip out signatures (ones that are delimited with the proper '--' notation). It will only strip the last signature of an email, in case someone enters a '--' intentionally elsewhere.</p> ]]></description>
<pubDate>Wed, 28 Jan 2009 05:42:09 GMT</pubDate>
<guid>http://snipplr.com/view/11598/php-strip-signature-from-email/</guid>
</item>
<item>
<title>(PHP) PHP Get First Characters of String in Complete Sentences</title>
<link>http://snipplr.com/view/10426/php-get-first-characters-of-string-in-complete-sentences/</link>
<description><![CDATA[ <p>Pass in text and the maximum allowable length and this snippet will return as many full sentences from the text as it can within that length. If no sentences, it will just trim to the maximum length allowed.</p> ]]></description>
<pubDate>Fri, 12 Dec 2008 05:33:26 GMT</pubDate>
<guid>http://snipplr.com/view/10426/php-get-first-characters-of-string-in-complete-sentences/</guid>
</item>
<item>
<title>(PHP) PHP Generate URL From Text</title>
<link>http://snipplr.com/view/9024/php-generate-url-from-text/</link>
<description><![CDATA[ <p>Function replaces all non-alpha-numeric chars and cleans up a text string. Should output a usable URL for almost all text.</p> ]]></description>
<pubDate>Wed, 15 Oct 2008 04:29:13 GMT</pubDate>
<guid>http://snipplr.com/view/9024/php-generate-url-from-text/</guid>
</item>
<item>
<title>(PHP) PHP Singleton Class</title>
<link>http://snipplr.com/view/8443/php-singleton-class/</link>
<description><![CDATA[ <p>Not extensively tested but should work just fine!</p> ]]></description>
<pubDate>Wed, 17 Sep 2008 05:27:16 GMT</pubDate>
<guid>http://snipplr.com/view/8443/php-singleton-class/</guid>
</item>
<item>
<title>(JavaScript) JavaScript Minimum Font Size</title>
<link>http://snipplr.com/view/8342/javascript-minimum-font-size/</link>
<description><![CDATA[ <p>Run on document load - script checks fonts are not too small and resizes to 10pt if they are.</p> ]]></description>
<pubDate>Thu, 11 Sep 2008 11:20:39 GMT</pubDate>
<guid>http://snipplr.com/view/8342/javascript-minimum-font-size/</guid>
</item>
<item>
<title>(Apache) mod_rewrite Redirect Domain (Only GET + HEAD)</title>
<link>http://snipplr.com/view/8341/modrewrite-redirect-domain-only-get--head/</link>
<description><![CDATA[ <p>Redirect all GET and HEAD requests to new domain (only redirecting GET and HEAD because POST, PUT, DELETE etc to old domain is almost certainly automated spam - no genuine users should ever be posting to old domain if it's been completely redirected). Serve 403 to any other request.</p> ]]></description>
<pubDate>Thu, 11 Sep 2008 11:11:20 GMT</pubDate>
<guid>http://snipplr.com/view/8341/modrewrite-redirect-domain-only-get--head/</guid>
</item>
<item>
<title>(SQL) SQL Delete Table if Exists</title>
<link>http://snipplr.com/view/8340/sql-delete-table-if-exists/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 11 Sep 2008 10:59:07 GMT</pubDate>
<guid>http://snipplr.com/view/8340/sql-delete-table-if-exists/</guid>
</item>
<item>
<title>(SQL) SQL Write Disk Space to Table</title>
<link>http://snipplr.com/view/8339/sql-write-disk-space-to-table/</link>
<description><![CDATA[ <p>This will run a bat file to get free space on a drive and write the results to a table.

Use script at http://snipplr.com/view/8331/calculate-free-space-on-drive/ as FreeSpace.bat</p> ]]></description>
<pubDate>Thu, 11 Sep 2008 10:58:32 GMT</pubDate>
<guid>http://snipplr.com/view/8339/sql-write-disk-space-to-table/</guid>
</item>
<item>
<title>(SQL) SQL Run Sanity Checks SP</title>
<link>http://snipplr.com/view/8338/sql-run-sanity-checks-sp/</link>
<description><![CDATA[ <p>Finds and runs all views that start with "sanity\_check". Writes number of rows returned by each view to sanity\_check\_results table for use later. 

Includes SQL to generate results table.</p> ]]></description>
<pubDate>Thu, 11 Sep 2008 10:52:59 GMT</pubDate>
<guid>http://snipplr.com/view/8338/sql-run-sanity-checks-sp/</guid>
</item>
<item>
<title>(SQL) SQL Obfuscate Credit Card Number</title>
<link>http://snipplr.com/view/8337/sql-obfuscate-credit-card-number/</link>
<description><![CDATA[ <p>All but last 4 digits turned to *</p> ]]></description>
<pubDate>Thu, 11 Sep 2008 10:42:31 GMT</pubDate>
<guid>http://snipplr.com/view/8337/sql-obfuscate-credit-card-number/</guid>
</item>
<item>
<title>(SQL) SQL Shrink Transaction Log</title>
<link>http://snipplr.com/view/8336/sql-shrink-transaction-log/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 11 Sep 2008 10:38:35 GMT</pubDate>
<guid>http://snipplr.com/view/8336/sql-shrink-transaction-log/</guid>
</item>
<item>
<title>(SQL) SQL Rebuild Dev Database</title>
<link>http://snipplr.com/view/8335/sql-rebuild-dev-database/</link>
<description><![CDATA[ <p>This script should be run from the "master" database. It will destroy the dev copy of a database and restore from the live copy.

Code slightly modified from original (linked).</p> ]]></description>
<pubDate>Thu, 11 Sep 2008 10:37:01 GMT</pubDate>
<guid>http://snipplr.com/view/8335/sql-rebuild-dev-database/</guid>
</item>
<item>
<title>(DOS Batch) DOS List Items in Directory</title>
<link>http://snipplr.com/view/8334/dos-list-items-in-directory/</link>
<description><![CDATA[ <p>Run from within SQL to get list of items in directory to a table.</p> ]]></description>
<pubDate>Thu, 11 Sep 2008 10:32:04 GMT</pubDate>
<guid>http://snipplr.com/view/8334/dos-list-items-in-directory/</guid>
</item>
<item>
<title>(DOS Batch) DOS Calculate Free Space on Drive</title>
<link>http://snipplr.com/view/8331/dos-calculate-free-space-on-drive/</link>
<description><![CDATA[ <p>Run this from within SQL Server to get free space on a drive into a table.

See http://snipplr.com/view/8339/write-disk-space-to-table/ for SQL.</p> ]]></description>
<pubDate>Thu, 11 Sep 2008 10:30:32 GMT</pubDate>
<guid>http://snipplr.com/view/8331/dos-calculate-free-space-on-drive/</guid>
</item>
<item>
<title>(DOS Batch) DOS Generate Thumbnails with NConvert</title>
<link>http://snipplr.com/view/8330/dos-generate-thumbnails-with-nconvert/</link>
<description><![CDATA[ <p>Crops and resizes, maintaining perspective, with a white background.</p> ]]></description>
<pubDate>Thu, 11 Sep 2008 10:29:14 GMT</pubDate>
<guid>http://snipplr.com/view/8330/dos-generate-thumbnails-with-nconvert/</guid>
</item>
</channel>
</rss>