<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr - theroamingcoder</title>
<link>http://snipplr.com/users/theroamingcoder</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Tue, 14 Feb 2012 21:39:34 GMT</pubDate>
<item>
<title>(Bash) DotCloud MongoDB Backup Script</title>
<link>http://snipplr.com/view/54805/dotcloud-mongodb-backup-script/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Fri, 03 Jun 2011 05:32:49 GMT</pubDate>
<guid>http://snipplr.com/view/54805/dotcloud-mongodb-backup-script/</guid>
</item>
<item>
<title>(PHP) Website Backup To Amazon S3 Storage (PHP Edition)</title>
<link>http://snipplr.com/view/51219/website-backup-to-amazon-s3-storage-php-edition/</link>
<description><![CDATA[ <p>This handy little script will backup your website's database (MySQL) and files and put them into an amazon s3 bucket.</p> ]]></description>
<pubDate>Tue, 29 Mar 2011 00:57:04 GMT</pubDate>
<guid>http://snipplr.com/view/51219/website-backup-to-amazon-s3-storage-php-edition/</guid>
</item>
<item>
<title>(Ruby) Website Backup To Amazon S3 Storage</title>
<link>http://snipplr.com/view/42178/website-backup-to-amazon-s3-storage/</link>
<description><![CDATA[ <p>This handy little script will backup your website\'s database (MySQL) and files and put them into an amazon s3 bucket.  You will need to make sure your host has the aws/s3 ruby gem installed.  Can easily be extended to include the email folders as well.  MAKE SURE TO PLACE IN A NON-WEB-ACCESSIBLE FOLDER!  And don\'t forget to schedule the task to run via cron.</p> ]]></description>
<pubDate>Wed, 13 Oct 2010 14:39:05 GMT</pubDate>
<guid>http://snipplr.com/view/42178/website-backup-to-amazon-s3-storage/</guid>
</item>
<item>
<title>(Ruby) Rails Delayed Job Script For Use On Shared Hosting</title>
<link>http://snipplr.com/view/40558/rails-delayed-job-script-for-use-on-shared-hosting/</link>
<description><![CDATA[ <p>Add this code to /script/jobrunner in your rails app (be sure to make it executable with chmod 775)
Then setup a normal cron job to run the script</p> ]]></description>
<pubDate>Thu, 16 Sep 2010 06:16:19 GMT</pubDate>
<guid>http://snipplr.com/view/40558/rails-delayed-job-script-for-use-on-shared-hosting/</guid>
</item>
<item>
<title>(jQuery) jquery ui autocomplete us states</title>
<link>http://snipplr.com/view/39953/jquery-ui-autocomplete-us-states/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Fri, 03 Sep 2010 13:19:25 GMT</pubDate>
<guid>http://snipplr.com/view/39953/jquery-ui-autocomplete-us-states/</guid>
</item>
<item>
<title>(PHP) Drupal hide block for content type</title>
<link>http://snipplr.com/view/35636/drupal-hide-block-for-content-type/</link>
<description><![CDATA[ <p>This example is specific to where the "Show on every page except the listed pages." item was selected, but then we needed to also make sure the block did not show for any page of a certain type.</p> ]]></description>
<pubDate>Wed, 09 Jun 2010 18:23:44 GMT</pubDate>
<guid>http://snipplr.com/view/35636/drupal-hide-block-for-content-type/</guid>
</item>
<item>
<title>(Java) Java create PHP timestamp</title>
<link>http://snipplr.com/view/33855/java-create-php-timestamp/</link>
<description><![CDATA[ <p>This specific snippet was for converting a sqlserver database export to a MySQL database where PHP timestamps from time() are used.</p> ]]></description>
<pubDate>Tue, 04 May 2010 11:42:44 GMT</pubDate>
<guid>http://snipplr.com/view/33855/java-create-php-timestamp/</guid>
</item>
<item>
<title>(SQL) Get row count from MySQL query</title>
<link>http://snipplr.com/view/30481/get-row-count-from-mysql-query/</link>
<description><![CDATA[ <p>This trick is useful in scenarios where you already have a count in the SELECT along with a GROUP BY that is preventing you from getting a total count of the rows returned.  Great for use in the $count_query parameter of pager_query() function calls in Drupal.</p> ]]></description>
<pubDate>Mon, 29 Mar 2010 16:38:22 GMT</pubDate>
<guid>http://snipplr.com/view/30481/get-row-count-from-mysql-query/</guid>
</item>
<item>
<title>(Groovy) Groovy Read CSV File</title>
<link>http://snipplr.com/view/29306/groovy-read-csv-file/</link>
<description><![CDATA[ <p>To use, first add the opencsv .jar to .groovy/lib.</p> ]]></description>
<pubDate>Thu, 04 Mar 2010 18:55:31 GMT</pubDate>
<guid>http://snipplr.com/view/29306/groovy-read-csv-file/</guid>
</item>
<item>
<title>(PHP) Drupal 6 CCK Get Allowed Fields List</title>
<link>http://snipplr.com/view/28677/drupal-6-cck-get-allowed-fields-list/</link>
<description><![CDATA[ <p>Only tested for Text and Number field types.</p> ]]></description>
<pubDate>Sat, 20 Feb 2010 23:57:48 GMT</pubDate>
<guid>http://snipplr.com/view/28677/drupal-6-cck-get-allowed-fields-list/</guid>
</item>
<item>
<title>(C#) Embedding IronRuby</title>
<link>http://snipplr.com/view/27059/embedding-ironruby/</link>
<description><![CDATA[ <p>Add references to : IronRuby.dll, IronRuby.Libraries.dll,
Microsoft.Scripting.dll and Microsoft.Scripting.Core.dll</p> ]]></description>
<pubDate>Mon, 25 Jan 2010 18:22:30 GMT</pubDate>
<guid>http://snipplr.com/view/27059/embedding-ironruby/</guid>
</item>
<item>
<title>(PHP) Drupal 6 Show Child Primary Links In Page</title>
<link>http://snipplr.com/view/26883/drupal-6-show-child-primary-links-in-page/</link>
<description><![CDATA[ <p>This code is ideal for situations where you have expandable primary links that don't particularly need their own page, but you would like to have links to the child menu items for users that do not have javascript enabled, or so on...</p> ]]></description>
<pubDate>Fri, 22 Jan 2010 19:11:42 GMT</pubDate>
<guid>http://snipplr.com/view/26883/drupal-6-show-child-primary-links-in-page/</guid>
</item>
<item>
<title>(JavaScript) Google Analytics - jQuery - track all outbound link clicks</title>
<link>http://snipplr.com/view/26660/google-analytics--jquery--track-all-outbound-link-clicks/</link>
<description><![CDATA[ <p>This code uses jQuery to add on onclick event tracker to all the links in a specific section of the page.  Can easily be modified for additional uses.  Note that this does not use the custom page view tracker like mentioned here : http://www.google.com/support/googleanalytics/bin/answer.py?hl=en&amp;answer=55527 so that it does not skew your actual page views count.</p> ]]></description>
<pubDate>Mon, 18 Jan 2010 15:58:21 GMT</pubDate>
<guid>http://snipplr.com/view/26660/google-analytics--jquery--track-all-outbound-link-clicks/</guid>
</item>
<item>
<title>(C#) state abbreviations list (dictionary)</title>
<link>http://snipplr.com/view/26424/state-abbreviations-list-dictionary/</link>
<description><![CDATA[ <p>Dictionary for converting state names to their abbreviations</p> ]]></description>
<pubDate>Wed, 13 Jan 2010 17:59:27 GMT</pubDate>
<guid>http://snipplr.com/view/26424/state-abbreviations-list-dictionary/</guid>
</item>
<item>
<title>(PHP) Display database query (MySQL / Drupal 5.x)</title>
<link>http://snipplr.com/view/23941/display-database-query-mysql--drupal-5x/</link>
<description><![CDATA[ <p>Great for generating quick reports from your drupal database in a PHP page.

Note that you will have to use the appropriate _num_fields and _fetch_field functions for your database.</p> ]]></description>
<pubDate>Mon, 30 Nov 2009 20:43:20 GMT</pubDate>
<guid>http://snipplr.com/view/23941/display-database-query-mysql--drupal-5x/</guid>
</item>
<item>
<title>(PHP) (php sql to array tree) Convert parent child database structure to a tree and then print it as html</title>
<link>http://snipplr.com/view/22864/php-sql-to-array-tree-convert-parent-child-database-structure-to-a-tree-and-then-print-it-as-html/</link>
<description><![CDATA[ <p>This code is meant to take it easy on the database by only requiring one query.  It also prints nicely indented html and can be used in pretty much any situation where you have a flat parent/child structure that needs to be converted into a tree.  This method can also build the tree in a single pass in some cases.  Note - I have also added code to have it ignore orphaned children.</p> ]]></description>
<pubDate>Tue, 10 Nov 2009 10:54:58 GMT</pubDate>
<guid>http://snipplr.com/view/22864/php-sql-to-array-tree-convert-parent-child-database-structure-to-a-tree-and-then-print-it-as-html/</guid>
</item>
<item>
<title>(PHP) Ensure array b contains all values from array a</title>
<link>http://snipplr.com/view/21583/ensure-array-b-contains-all-values-from-array-a/</link>
<description><![CDATA[ <p>I needed to ensure that a user in Drupal was a member of all groups (og module) that a node was posted into.</p> ]]></description>
<pubDate>Wed, 21 Oct 2009 18:32:00 GMT</pubDate>
<guid>http://snipplr.com/view/21583/ensure-array-b-contains-all-values-from-array-a/</guid>
</item>
<item>
<title>(SQL) MySQL group by week</title>
<link>http://snipplr.com/view/20681/mysql-group-by-week/</link>
<description><![CDATA[ <p>Using MySQL you can group date data by week.  This is much easier than trying to add up the daily values for each week in a code loop.</p> ]]></description>
<pubDate>Mon, 05 Oct 2009 18:20:41 GMT</pubDate>
<guid>http://snipplr.com/view/20681/mysql-group-by-week/</guid>
</item>
<item>
<title>(C#) Remove empty values and extra whitespace from a list</title>
<link>http://snipplr.com/view/20061/remove-empty-values-and-extra-whitespace-from-a-list/</link>
<description><![CDATA[ <p>This is useful for handling user provided, comma separated data.  For example, in the case where the user inputs " 1, 2,3,4,,   5, 6,  " you would want to remove the whitespace around each item as well as the empty items to produce "1,2,3,4,5,6".</p> ]]></description>
<pubDate>Tue, 22 Sep 2009 16:44:12 GMT</pubDate>
<guid>http://snipplr.com/view/20061/remove-empty-values-and-extra-whitespace-from-a-list/</guid>
</item>
<item>
<title>(PHP) Add google analytics tag to all links in email body</title>
<link>http://snipplr.com/view/20055/add-google-analytics-tag-to-all-links-in-email-body/</link>
<description><![CDATA[ <p>This code can be used to add Google Analytics tracking tags to all links back to your site in email messages that you send.  You can then track the referrals back to your site from those emails.  See http://www.google.com/support/analytics/bin/answer.py?answer=55578&amp;hl=en for a tool to help you build the tags.</p> ]]></description>
<pubDate>Tue, 22 Sep 2009 13:12:32 GMT</pubDate>
<guid>http://snipplr.com/view/20055/add-google-analytics-tag-to-all-links-in-email-body/</guid>
</item>
</channel>
</rss>
