<?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/Leech</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Fri, 09 Jan 2009 07:55:51 GMT</pubDate>
<item>
<title>(PHP) Imprimir la fecha en español utilizando PHP aunque el idioma del servidor sea el inglés. - Leech</title>
<link>http://snipplr.com/view/8708/imprimir-la-fecha-en-espaol-utilizando-php-aunque-el-idioma-del-servidor-sea-el-ingls/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Tue, 30 Sep 2008 03:52:17 GMT</pubDate>
<guid>http://snipplr.com/view/8708/imprimir-la-fecha-en-espaol-utilizando-php-aunque-el-idioma-del-servidor-sea-el-ingls/</guid>
</item>
<item>
<title>(Objective C) Duplicate Xcode project - Leech</title>
<link>http://snipplr.com/view/8597/duplicate-xcode-project/</link>
<description><![CDATA[ <p>This is very helpful to duplicate/rename a project in Xcode 3.x</p> ]]></description>
<pubDate>Thu, 25 Sep 2008 12:19:56 GMT</pubDate>
<guid>http://snipplr.com/view/8597/duplicate-xcode-project/</guid>
</item>
<item>
<title>(JavaScript) Get Absolute Position - Leech</title>
<link>http://snipplr.com/view/7558/get-absolute-position/</link>
<description><![CDATA[ <p>Returns absolute position of given object. Specially for crap-IE that do not detects correctly the .offset* attribute.</p> ]]></description>
<pubDate>Mon, 28 Jul 2008 11:37:09 GMT</pubDate>
<guid>http://snipplr.com/view/7558/get-absolute-position/</guid>
</item>
<item>
<title>(Objective C) flipping a view on the iphone sdk - Leech</title>
<link>http://snipplr.com/view/6784/flipping-a-view-on-the-iphone-sdk/</link>
<description><![CDATA[ <p>the controllers view is setup s.t. it adds the mainView as a subview to its default view in the init method</p> ]]></description>
<pubDate>Thu, 19 Jun 2008 13:58:14 GMT</pubDate>
<guid>http://snipplr.com/view/6784/flipping-a-view-on-the-iphone-sdk/</guid>
</item>
<item>
<title>(Bash) My .bash_aliases - Leech</title>
<link>http://snipplr.com/view/6729/my-bashaliases/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Mon, 16 Jun 2008 02:04:35 GMT</pubDate>
<guid>http://snipplr.com/view/6729/my-bashaliases/</guid>
</item>
<item>
<title>(Ruby) TextMate bundle searching and pasting code - Leech</title>
<link>http://snipplr.com/view/6603/textmate-bundle-searching-and-pasting-code/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 05 Jun 2008 15:03:04 GMT</pubDate>
<guid>http://snipplr.com/view/6603/textmate-bundle-searching-and-pasting-code/</guid>
</item>
<item>
<title>(Other) Drupal: View for Image Gallery - Leech</title>
<link>http://snipplr.com/view/6331/drupal-view-for-image-gallery/</link>
<description><![CDATA[ <p>View to use with the docs at http://drupal.org/node/144725 for creating image gallery using cck, views and thickbox.</p> ]]></description>
<pubDate>Mon, 19 May 2008 16:20:36 GMT</pubDate>
<guid>http://snipplr.com/view/6331/drupal-view-for-image-gallery/</guid>
</item>
<item>
<title>(Bash) Creating a Simple Alias in Terminal - Leech</title>
<link>http://snipplr.com/view/6210/creating-a-simple-alias-in-terminal/</link>
<description><![CDATA[ <p>I use terminal for SFTP because I'm cheap and I don't want to purchase Transmit. SFTP works just fine but the problem is that I get tired of having to type [bash]$ sftp chrisaiv@blah.com:/directory/subdirectory/ so instead I've made an alias.  First things first, in terminal using Textmate, type [bash]$ mate ~/.bash_alias.  Next paste the code below.  After you save the file, type [bash]$ ~/.bash_profile and past the second line of code.  After you restart your terminal, you should only have to type the alias nickname and whala!</p> ]]></description>
<pubDate>Tue, 13 May 2008 14:37:46 GMT</pubDate>
<guid>http://snipplr.com/view/6210/creating-a-simple-alias-in-terminal/</guid>
</item>
<item>
<title>(Bash) Send Email Attachment from the Command Line - Leech</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>(SQL) Check MySQL Queries - Leech</title>
<link>http://snipplr.com/view/5710/check-mysql-queries/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Fri, 04 Apr 2008 22:41:02 GMT</pubDate>
<guid>http://snipplr.com/view/5710/check-mysql-queries/</guid>
</item>
<item>
<title>(Objective C) Interface builder &amp;amp; iphone sdk - Leech</title>
<link>http://snipplr.com/view/5599/interface-builder--iphone-sdk/</link>
<description><![CDATA[ <p>Para usar el interface builder con el iphone hay que crear una vista o una ventana, guardarla dentro del proyecto, y meter esta línea en appdelegate en applicationDidFinishLaunching.</p> ]]></description>
<pubDate>Fri, 28 Mar 2008 14:09:37 GMT</pubDate>
<guid>http://snipplr.com/view/5599/interface-builder--iphone-sdk/</guid>
</item>
<item>
<title>(Other) Regex to find PHP comments with TextMate - Leech</title>
<link>http://snipplr.com/view/5380/regex-to-find-php-comments-with-textmate/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 12 Mar 2008 12:45:26 GMT</pubDate>
<guid>http://snipplr.com/view/5380/regex-to-find-php-comments-with-textmate/</guid>
</item>
<item>
<title>(Bash) sync a file or dir to remote location - Leech</title>
<link>http://snipplr.com/view/4436/sync-a-file-or-dir-to-remote-location/</link>
<description><![CDATA[ <p>The -P handles partial transfers, I'm using this for big audio/video files.</p> ]]></description>
<pubDate>Sun, 30 Dec 2007 23:39:47 GMT</pubDate>
<guid>http://snipplr.com/view/4436/sync-a-file-or-dir-to-remote-location/</guid>
</item>
<item>
<title>(CSS) Master Stylesheet - Leech</title>
<link>http://snipplr.com/view/4233/master-stylesheet/</link>
<description><![CDATA[ <p>One of the most common mistakes I see beginners and intermediates fall victim to when it comes to CSS is not removing the default browser styling. This leads to inconsistencies in the appearance of your design across browsers, and ultimately leaves a lot of designers blaming the browser. It is a misplaced blame, of course. Before you do anything else when coding a website, you should reset the styling.</p> ]]></description>
<pubDate>Sat, 01 Dec 2007 15:15:09 GMT</pubDate>
<guid>http://snipplr.com/view/4233/master-stylesheet/</guid>
</item>
<item>
<title>(PHP) Prevent SQL Injection - Leech</title>
<link>http://snipplr.com/view/4205/prevent-sql-injection/</link>
<description><![CDATA[ <p>Pass a user-inputted variable to this function in order to prevent SQL injection. Example:

mysql_query("INSERT INTO table VALUES('" . sql_sanitize($_POST["variable") . "')");

Instead of:

mysql_query("INSERT INTO table VALUES('" . $_POST["variable"] . "'");</p> ]]></description>
<pubDate>Wed, 28 Nov 2007 09:25:01 GMT</pubDate>
<guid>http://snipplr.com/view/4205/prevent-sql-injection/</guid>
</item>
<item>
<title>(Bash) Backup a remote MySQL database to your local hard disk - Leech</title>
<link>http://snipplr.com/view/3863/backup-a-remote-mysql-database-to-your-local-hard-disk/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Tue, 09 Oct 2007 00:41:54 GMT</pubDate>
<guid>http://snipplr.com/view/3863/backup-a-remote-mysql-database-to-your-local-hard-disk/</guid>
</item>
<item>
<title>(Bash) attachments for mail in command line - Leech</title>
<link>http://snipplr.com/view/3840/attachments-for-mail-in-command-line/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 04 Oct 2007 04:07:57 GMT</pubDate>
<guid>http://snipplr.com/view/3840/attachments-for-mail-in-command-line/</guid>
</item>
<item>
<title>(SQL) Export and import from MySQL - Leech</title>
<link>http://snipplr.com/view/3685/export-and-import-from-mysql/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 13 Sep 2007 11:40:27 GMT</pubDate>
<guid>http://snipplr.com/view/3685/export-and-import-from-mysql/</guid>
</item>
<item>
<title>(Bash) Find a file - Leech</title>
<link>http://snipplr.com/view/3545/find-a-file/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Tue, 21 Aug 2007 08:58:03 GMT</pubDate>
<guid>http://snipplr.com/view/3545/find-a-file/</guid>
</item>
<item>
<title>(Bash) Get the disk space used by a directory - Leech</title>
<link>http://snipplr.com/view/3494/get-the-disk-space-used-by-a-directory/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 09 Aug 2007 18:29:55 GMT</pubDate>
<guid>http://snipplr.com/view/3494/get-the-disk-space-used-by-a-directory/</guid>
</item>
</channel>
</rss>