<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr</title>
<link>http://snipplr.com/favorites/tylerhall</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Mon, 08 Sep 2008 08:25:25 GMT</pubDate>
<item>
<title>(PHP) Getting real IP address in PHP - tylerhall</title>
<link>http://snipplr.com/view/4439/getting-real-ip-address-in-php/</link>
<description><![CDATA[ <p>Are you using $_SERVER['REMOTE_ADDR'] to find the the client's IP address? Well dude, you might be amazed to know that it may not return the true IP address of the client at all time. If your client is connected to the Internet through Proxy Server then $_SERVER['REMOTE_ADDR'] just returns the the IP address of the proxy server not of the client's machine. So here is a simple function in PHP to find the real IP address of the client's machine.</p> ]]></description>
<pubDate>Tue, 01 Jan 2008 11:02:20 GMT</pubDate>
<guid>http://snipplr.com/view/4439/getting-real-ip-address-in-php/</guid>
</item>
<item>
<title>(PHP) PHP - unhtmlentities - tylerhall</title>
<link>http://snipplr.com/view/3502/php--unhtmlentities/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Fri, 10 Aug 2007 06:24:09 GMT</pubDate>
<guid>http://snipplr.com/view/3502/php--unhtmlentities/</guid>
</item>
<item>
<title>(JavaScript) Which element was clicked? - tylerhall</title>
<link>http://snipplr.com/view/2565/which-element-was-clicked/</link>
<description><![CDATA[ <p>How to get a reference to the element that was clicked to fire an event.  The code is gratefully cribbed from Quirksmode.org.

Updated to reflect how I actually implement this, slightly different from PPK's original.</p> ]]></description>
<pubDate>Mon, 30 Apr 2007 05:07:47 GMT</pubDate>
<guid>http://snipplr.com/view/2565/which-element-was-clicked/</guid>
</item>
<item>
<title>(ASP) Display RSS Feed - tylerhall</title>
<link>http://snipplr.com/view/2472/display-rss-feed/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Fri, 13 Apr 2007 14:29:10 GMT</pubDate>
<guid>http://snipplr.com/view/2472/display-rss-feed/</guid>
</item>
<item>
<title>(Bash) mysqldump2mail - tylerhall</title>
<link>http://snipplr.com/view/2353/mysqldump2mail/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sun, 18 Mar 2007 13:01:46 GMT</pubDate>
<guid>http://snipplr.com/view/2353/mysqldump2mail/</guid>
</item>
<item>
<title>(Bash) Twitter from the command line using curl - tylerhall</title>
<link>http://snipplr.com/view/2352/twitter-from-the-command-line-using-curl/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sun, 18 Mar 2007 11:06:02 GMT</pubDate>
<guid>http://snipplr.com/view/2352/twitter-from-the-command-line-using-curl/</guid>
</item>
<item>
<title>(Ruby) Post snippet to Snipplr - tylerhall</title>
<link>http://snipplr.com/view/2044/post-snippet-to-snipplr/</link>
<description><![CDATA[ <p>Alternative bundle command for e (http://www.e-texteditor.com) or TextMate.

Replace YOUR_API_KEY_HERE with a valid API key -- you can find it on your Settings page (http://snipplr.com/settings/).

Changed the command to allow selection of language.  (Thanks, Tyler!)  Also it was unnecessary to escape entities when posting to Snipplr, so that caused problems.  Please let me know if you have any issues with or suggestions for this command.  If you're using TextMate, you'll need to alter the path to CocoaDialog, and you might as well use an environment variable for the API Key.

2/2/2007: Fixed a bug that prevented posting snippets with no tags.  Languages are now sorted alphabetically.</p> ]]></description>
<pubDate>Tue, 30 Jan 2007 20:26:49 GMT</pubDate>
<guid>http://snipplr.com/view/2044/post-snippet-to-snipplr/</guid>
</item>
<item>
<title>(Ruby) Get one of your snippets from Snipplr - tylerhall</title>
<link>http://snipplr.com/view/2039/get-one-of-your-snippets-from-snipplr/</link>
<description><![CDATA[ <p>This command allows you to browse your snippet collection on Snipplr and retrieve them into e.  Requires the installation of the wxCocoaDialog exe in the /Support/bin subdirectory.

Replace YOUR_API_KEY_HERE with the API key -- you can find it on your Settings page (http://snipplr.com/settings/).

Update 1/31/2007: I found escaping the $ was necessary to prevent the snippet engine from eating the variable.
Update 2/01/2007: Use the standard library function for escaping the snippet (instead of my own gsub() regex.
Update 2/02/2007: Add error checking code; handle empty accounts a bit more gracefully (and informatively).</p> ]]></description>
<pubDate>Tue, 30 Jan 2007 15:26:51 GMT</pubDate>
<guid>http://snipplr.com/view/2039/get-one-of-your-snippets-from-snipplr/</guid>
</item>
<item>
<title>(PHP) PHP5 CSV Iterator - tylerhall</title>
<link>http://snipplr.com/view/1986/php5-csv-iterator/</link>
<description><![CDATA[ <p>I think I got this one off php.net. I wish I could thank the author properly because this has been a real helper!</p> ]]></description>
<pubDate>Tue, 16 Jan 2007 20:27:38 GMT</pubDate>
<guid>http://snipplr.com/view/1986/php5-csv-iterator/</guid>
</item>
<item>
<title>(SQL) Faster "select from where NOT in" - tylerhall</title>
<link>http://snipplr.com/view/1793/faster-select-from-where-not-in/</link>
<description><![CDATA[ <p>Same result as: "select from where NOT in" but faster. 
The result is: all customers that don't have orders.</p> ]]></description>
<pubDate>Wed, 13 Dec 2006 00:48:46 GMT</pubDate>
<guid>http://snipplr.com/view/1793/faster-select-from-where-not-in/</guid>
</item>
<item>
<title>(PHP) Php Socket Client - tylerhall</title>
<link>http://snipplr.com/view/1677/php-socket-client/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Fri, 17 Nov 2006 13:08:57 GMT</pubDate>
<guid>http://snipplr.com/view/1677/php-socket-client/</guid>
</item>
<item>
<title>(JavaScript) trim function - tylerhall</title>
<link>http://snipplr.com/view/1300/trim-function/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 04 Oct 2006 05:10:46 GMT</pubDate>
<guid>http://snipplr.com/view/1300/trim-function/</guid>
</item>
<item>
<title>(JavaScript) JSON Parser - tylerhall</title>
<link>http://snipplr.com/view/1031/json-parser/</link>
<description><![CDATA[ <p>A good alternative to eval when security is a concern. From json.org.</p> ]]></description>
<pubDate>Thu, 07 Sep 2006 12:37:47 GMT</pubDate>
<guid>http://snipplr.com/view/1031/json-parser/</guid>
</item>
<item>
<title>(JavaScript) getSelection - tylerhall</title>
<link>http://snipplr.com/view/775/getselection/</link>
<description><![CDATA[ <p>Support: IE6, Fx2, Opera9, Safari
Cross browser getSelection().</p> ]]></description>
<pubDate>Fri, 11 Aug 2006 00:00:03 GMT</pubDate>
<guid>http://snipplr.com/view/775/getselection/</guid>
</item>
<item>
<title>(CSS) Handy CSS Debug Snippet - tylerhall</title>
<link>http://snipplr.com/view/746/handy-css-debug-snippet/</link>
<description><![CDATA[ <p>Great little debuging snippet found while browsing. The code adds different coloured borders to the assets depending on its level. Leave commented out if not needed.</p> ]]></description>
<pubDate>Mon, 07 Aug 2006 13:30:38 GMT</pubDate>
<guid>http://snipplr.com/view/746/handy-css-debug-snippet/</guid>
</item>
<item>
<title>(Other) Stopping Idle Brightness Reduction on Mac - tylerhall</title>
<link>http://snipplr.com/view/571/stopping-idle-brightness-reduction-on-mac/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Mon, 24 Jul 2006 11:17:12 GMT</pubDate>
<guid>http://snipplr.com/view/571/stopping-idle-brightness-reduction-on-mac/</guid>
</item>
<item>
<title>(Ruby) Get from Pastie - Textmate Command - tylerhall</title>
<link>http://snipplr.com/view/487/get-from-pastie--textmate-command/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Tue, 18 Jul 2006 02:09:06 GMT</pubDate>
<guid>http://snipplr.com/view/487/get-from-pastie--textmate-command/</guid>
</item>
<item>
<title>(HTML) Countries Menu - tylerhall</title>
<link>http://snipplr.com/view/338/countries-menu/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Mon, 10 Jul 2006 15:07:00 GMT</pubDate>
<guid>http://snipplr.com/view/338/countries-menu/</guid>
</item>
<item>
<title>(PHP) smart_trim - tylerhall</title>
<link>http://snipplr.com/view/335/smarttrim/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Mon, 10 Jul 2006 13:10:43 GMT</pubDate>
<guid>http://snipplr.com/view/335/smarttrim/</guid>
</item>
<item>
<title>(PHP) Open PHP5 Object, No need to declare variable name first - tylerhall</title>
<link>http://snipplr.com/view/324/open-php5-object-no-need-to-declare-variable-name-first/</link>
<description><![CDATA[ <p>I use this object verry often, so that I only need to pass one object as parameter on any function. No need to wory when we refactore the function
Usage: 
$var = new open();
$var->url = 'http://www.world.com';
$var->title = 'Testing Site';

echo some_function($var);</p> ]]></description>
<pubDate>Mon, 10 Jul 2006 03:05:03 GMT</pubDate>
<guid>http://snipplr.com/view/324/open-php5-object-no-need-to-declare-variable-name-first/</guid>
</item>
</channel>
</rss>