<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr - tylerhall</title>
<link>http://snipplr.com/users/tylerhall</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Thu, 24 Jul 2008 08:18:44 GMT</pubDate>
<item>
<title>(Bash) Send Email Attachment from the Command Line</title>
<link>http://snipplr.com/view/5919/send-email-attachment-from-the-command-line/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sat, 19 Apr 2008 16:10:45 GMT</pubDate>
<guid>http://snipplr.com/view/5919/send-email-attachment-from-the-command-line/</guid>
</item>
<item>
<title>(Bash) SVN Add Recursively</title>
<link>http://snipplr.com/view/5745/svn-add-recursively/</link>
<description><![CDATA[ <p>This adds all new files to SVN recursively. It doesn't work for files that have spaces in their name, but why would you create a file with a space in its name in the first place?</p> ]]></description>
<pubDate>Tue, 08 Apr 2008 02:54:09 GMT</pubDate>
<guid>http://snipplr.com/view/5745/svn-add-recursively/</guid>
</item>
<item>
<title>(PHP) Build Nested Array From SQL</title>
<link>http://snipplr.com/view/4383/build-nested-array-from-sql/</link>
<description><![CDATA[ <p>During the time that I’ve been programming I’ve continually run into times when I needed to be able to store a multi-level list into a database and retrieve it. I’ve used this in a CMS system to allow uses to create and nest their own menu options or to allow users to create and nest categories of items. Saving it was never a problem, but retrieving it and building a PHP array with nested structure was a messy task. The problem was that you couldn’t easily enter a variable four levels deep into an array without knowing all of the parents of that item. This was okay if you retrieved the data in order of parents, but that meant if you wanted to sort the data by another column (such as name), you would have to do multiple passes through your data to continually reshuffle it.</p> ]]></description>
<pubDate>Wed, 19 Dec 2007 15:15:51 GMT</pubDate>
<guid>http://snipplr.com/view/4383/build-nested-array-from-sql/</guid>
</item>
<item>
<title>(Bash) Create SVN Respos</title>
<link>http://snipplr.com/view/4217/create-svn-respos/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 29 Nov 2007 13:56:57 GMT</pubDate>
<guid>http://snipplr.com/view/4217/create-svn-respos/</guid>
</item>
<item>
<title>(Other) Force SSL HTTPS Connections</title>
<link>http://snipplr.com/view/3823/force-ssl-https-connections/</link>
<description><![CDATA[ <p>Adding these rules to your .htaccess file will force visitors to use https</p> ]]></description>
<pubDate>Wed, 03 Oct 2007 09:44:45 GMT</pubDate>
<guid>http://snipplr.com/view/3823/force-ssl-https-connections/</guid>
</item>
<item>
<title>(PHP) Undo Register Globals</title>
<link>http://snipplr.com/view/3758/undo-register-globals/</link>
<description><![CDATA[ <p>Some shared hosting providers won't allow you to turn off register globals. This code undoes the effects of having the option turned on. You must run this code *before* *any* other code in your script.</p> ]]></description>
<pubDate>Fri, 21 Sep 2007 12:48:18 GMT</pubDate>
<guid>http://snipplr.com/view/3758/undo-register-globals/</guid>
</item>
<item>
<title>(Bash) Deny Access to .svn Files From Web</title>
<link>http://snipplr.com/view/3706/deny-access-to-svn-files-from-web/</link>
<description><![CDATA[ <p>If your website is under version control, users may be able to access your .svn files. This mod_rewrite rule serves a 404 error page if they try to access them. Place the following lines in your website's .htaccess file.</p> ]]></description>
<pubDate>Sat, 15 Sep 2007 09:04:29 GMT</pubDate>
<guid>http://snipplr.com/view/3706/deny-access-to-svn-files-from-web/</guid>
</item>
<item>
<title>(PHP) Generate a Unambiguous Random Password</title>
<link>http://snipplr.com/view/3584/generate-a-unambiguous-random-password/</link>
<description><![CDATA[ <p>This function generates a random password of a specified length in lower or mixed case letters and numbers. Ambiguous characters, such as I, L, 1, 0, and O, are left out so the user can easily read the password.</p> ]]></description>
<pubDate>Tue, 28 Aug 2007 14:19:18 GMT</pubDate>
<guid>http://snipplr.com/view/3584/generate-a-unambiguous-random-password/</guid>
</item>
<item>
<title>(Objective C) Run an NSAlert Sheet in your Cocoa App</title>
<link>http://snipplr.com/view/3517/run-an-nsalert-sheet-in-your-cocoa-app/</link>
<description><![CDATA[ <p>This code runs an alert sheet in your Cocoa app. You first create an NSAlert object, its properties, and define the method that should be called when the user dismisses the sheet. Then write the corresponding handler that tests for an "OK" or "Cancel" button press.</p> ]]></description>
<pubDate>Tue, 14 Aug 2007 15:21:41 GMT</pubDate>
<guid>http://snipplr.com/view/3517/run-an-nsalert-sheet-in-your-cocoa-app/</guid>
</item>
<item>
<title>(Bash) Show Connected iTunes Users</title>
<link>http://snipplr.com/view/3257/show-connected-itunes-users/</link>
<description><![CDATA[ <p>Run this command in a terminal window to list the IP addresses of users connected to your shared iTunes library.</p> ]]></description>
<pubDate>Mon, 09 Jul 2007 15:11:07 GMT</pubDate>
<guid>http://snipplr.com/view/3257/show-connected-itunes-users/</guid>
</item>
<item>
<title>(Bash) Lookup a Domain's MX Records (Mail Server)</title>
<link>http://snipplr.com/view/3115/lookup-a-domains-mx-records-mail-server/</link>
<description><![CDATA[ <p>This command displays a domain's MX records.</p> ]]></description>
<pubDate>Mon, 02 Jul 2007 08:20:35 GMT</pubDate>
<guid>http://snipplr.com/view/3115/lookup-a-domains-mx-records-mail-server/</guid>
</item>
<item>
<title>(Bash) Eject CD From OS X Command Line</title>
<link>http://snipplr.com/view/3059/eject-cd-from-os-x-command-line/</link>
<description><![CDATA[ <p>This command ejects a CD or DVD from the command line.</p> ]]></description>
<pubDate>Wed, 27 Jun 2007 15:31:19 GMT</pubDate>
<guid>http://snipplr.com/view/3059/eject-cd-from-os-x-command-line/</guid>
</item>
<item>
<title>(Bash) Handbrake CLI Presets</title>
<link>http://snipplr.com/view/3056/handbrake-cli-presets/</link>
<description><![CDATA[ <p>Command to convert DVD's to AppleTV, iPod, PS3, and PSP formats using the command line version of HandBrake.</p> ]]></description>
<pubDate>Wed, 27 Jun 2007 11:43:32 GMT</pubDate>
<guid>http://snipplr.com/view/3056/handbrake-cli-presets/</guid>
</item>
<item>
<title>(Bash) Modify Exif Date Data</title>
<link>http://snipplr.com/view/2859/modify-exif-date-data/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 13 Jun 2007 18:07:16 GMT</pubDate>
<guid>http://snipplr.com/view/2859/modify-exif-date-data/</guid>
</item>
<item>
<title>(PHP) Convert String to Slug</title>
<link>http://snipplr.com/view/2809/convert-string-to-slug/</link>
<description><![CDATA[ <p>This filters a string into a "friendly" string for use in URL's. It converts the string to lower case and replaces any non-alphanumeric (and accented) characters with dashes.</p> ]]></description>
<pubDate>Wed, 06 Jun 2007 11:38:06 GMT</pubDate>
<guid>http://snipplr.com/view/2809/convert-string-to-slug/</guid>
</item>
<item>
<title>(Bash) Rename Multiple Files in Bash Using Regular Expressions</title>
<link>http://snipplr.com/view/2736/rename-multiple-files-in-bash-using-regular-expressions/</link>
<description><![CDATA[ <p>This small, bash script will loop though the specified files and rename them according to a sed regular expression. In this example, I'm renaming a bunch of .avi movie files.</p> ]]></description>
<pubDate>Sat, 26 May 2007 07:28:35 GMT</pubDate>
<guid>http://snipplr.com/view/2736/rename-multiple-files-in-bash-using-regular-expressions/</guid>
</item>
<item>
<title>(PHP) Get Full URL</title>
<link>http://snipplr.com/view/2734/get-full-url/</link>
<description><![CDATA[ <p>Returns the full URL of the current page - including any query parameters.</p> ]]></description>
<pubDate>Fri, 25 May 2007 20:45:25 GMT</pubDate>
<guid>http://snipplr.com/view/2734/get-full-url/</guid>
</item>
<item>
<title>(Other) Force Website To Not Use WWW Prefix</title>
<link>http://snipplr.com/view/2613/force-website-to-not-use-www-prefix/</link>
<description><![CDATA[ <p>This mod_rewrite rule will force visitors who go to www.domain.com to be redirected to domain.com</p> ]]></description>
<pubDate>Tue, 08 May 2007 15:07:47 GMT</pubDate>
<guid>http://snipplr.com/view/2613/force-website-to-not-use-www-prefix/</guid>
</item>
<item>
<title>(Bash) Enable Safari Debug Menu</title>
<link>http://snipplr.com/view/2610/enable-safari-debug-menu/</link>
<description><![CDATA[ <p>Run this command in a terminal window to turn on Safari's debug menu.</p> ]]></description>
<pubDate>Mon, 07 May 2007 13:23:12 GMT</pubDate>
<guid>http://snipplr.com/view/2610/enable-safari-debug-menu/</guid>
</item>
<item>
<title>(Bash) Unmount All AFP Network Shares</title>
<link>http://snipplr.com/view/2601/unmount-all-afp-network-shares/</link>
<description><![CDATA[ <p>This command will force all mounted AFP network drive to disconnect. I've set this to run automatically each time my laptop sleeps so that if I wake it up on a different network Finder won't freak out.</p> ]]></description>
<pubDate>Fri, 04 May 2007 15:01:18 GMT</pubDate>
<guid>http://snipplr.com/view/2601/unmount-all-afp-network-shares/</guid>
</item>
</channel>
</rss>