<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr - daipratt</title>
<link>http://snipplr.com/users/daipratt</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Sun, 26 May 2013 13:24:28 GMT</pubDate>
<item>
<title>(Bash) Install the PECL uploadprogress library on Ubuntu 10</title>
<link>http://snipplr.com/view/49588/install-the-pecl-uploadprogress-library-on-ubuntu-10/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 24 Feb 2011 19:52:57 GMT</pubDate>
<guid>http://snipplr.com/view/49588/install-the-pecl-uploadprogress-library-on-ubuntu-10/</guid>
</item>
<item>
<title>(Other) .htaccess - allow access only from certain IP's and IP ranges</title>
<link>http://snipplr.com/view/49157/htaccess--allow-access-only-from-certain-ips-and-ip-ranges/</link>
<description><![CDATA[ <p>See here for Amazon EC2 range
https://forums.aws.amazon.com/ann.jspa?annID=877</p> ]]></description>
<pubDate>Thu, 17 Feb 2011 20:57:52 GMT</pubDate>
<guid>http://snipplr.com/view/49157/htaccess--allow-access-only-from-certain-ips-and-ip-ranges/</guid>
</item>
<item>
<title>(Bash) Install Apache, Mysql &amp;amp; PHP via the command line in Ubuntu</title>
<link>http://snipplr.com/view/49047/install-apache-mysql--php-via-the-command-line-in-ubuntu/</link>
<description><![CDATA[ <p>Run through this lot line by line and you should be good. Make sure you select Apache when you are installing PHPMyAdmin. If you mess up installing PHPMyAdmin, use the following command to re-configure:
sudo dpkg-reconfigure phpmyadmin</p> ]]></description>
<pubDate>Tue, 15 Feb 2011 20:22:02 GMT</pubDate>
<guid>http://snipplr.com/view/49047/install-apache-mysql--php-via-the-command-line-in-ubuntu/</guid>
</item>
<item>
<title>(MySQL) Increase the max_allowed_packet in MySQL</title>
<link>http://snipplr.com/view/48228/increase-the-maxallowedpacket-in-mysql/</link>
<description><![CDATA[ <p>If you every get hit by ERROR 1153 (08S01): Got a packet bigger than 'max_allowed_packet' bytes, then this might help.
You also need to make sure that the user that you log in with has SUPER privileges on their account.</p> ]]></description>
<pubDate>Wed, 02 Feb 2011 02:13:31 GMT</pubDate>
<guid>http://snipplr.com/view/48228/increase-the-maxallowedpacket-in-mysql/</guid>
</item>
<item>
<title>(Other) Install PHP Fileinfo Extension via the command line</title>
<link>http://snipplr.com/view/47799/install-php-fileinfo-extension-via-the-command-line/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Tue, 25 Jan 2011 01:53:14 GMT</pubDate>
<guid>http://snipplr.com/view/47799/install-php-fileinfo-extension-via-the-command-line/</guid>
</item>
<item>
<title>(Other) Install PECL uploadprogress via SSH</title>
<link>http://snipplr.com/view/47503/install-pecl-uploadprogress-via-ssh/</link>
<description><![CDATA[ <p>This script can be used to install the PECL upload progress PHP extension. You'll know this extension from the Drupal status report page which encourages you to install it.</p> ]]></description>
<pubDate>Wed, 19 Jan 2011 21:23:34 GMT</pubDate>
<guid>http://snipplr.com/view/47503/install-pecl-uploadprogress-via-ssh/</guid>
</item>
<item>
<title>(Other) 301 redirect one domain to another using .htaccess</title>
<link>http://snipplr.com/view/46236/301-redirect-one-domain-to-another-using-htaccess/</link>
<description><![CDATA[ <p>This will redirect all pages from one domain, to the homepage of another domain.</p> ]]></description>
<pubDate>Wed, 29 Dec 2010 20:53:47 GMT</pubDate>
<guid>http://snipplr.com/view/46236/301-redirect-one-domain-to-another-using-htaccess/</guid>
</item>
<item>
<title>(PHP) PHP regex - Remove special characters from a string</title>
<link>http://snipplr.com/view/46143/php-regex--remove-special-characters-from-a-string/</link>
<description><![CDATA[ <p>This will remove all non-ascii characters / special characters from a string.</p> ]]></description>
<pubDate>Mon, 27 Dec 2010 02:24:51 GMT</pubDate>
<guid>http://snipplr.com/view/46143/php-regex--remove-special-characters-from-a-string/</guid>
</item>
<item>
<title>(MySQL) MySQL UNIX timestamp to readable date</title>
<link>http://snipplr.com/view/45027/mysql-unix-timestamp-to-readable-date/</link>
<description><![CDATA[ <p>Convert a Drupal time stamp field into a readable format. The Drupal time stamp field is in the UNIX format.</p> ]]></description>
<pubDate>Tue, 30 Nov 2010 02:10:24 GMT</pubDate>
<guid>http://snipplr.com/view/45027/mysql-unix-timestamp-to-readable-date/</guid>
</item>
<item>
<title>(Other) Close the mysql port (3306) from external access.</title>
<link>http://snipplr.com/view/42781/close-the-mysql-port-3306-from-external-access/</link>
<description><![CDATA[ <p>The command you need to close the mysql port 3306 from external access.  You need to use the 2 lines in the snippet below once you have connected to the server via SSH.</p> ]]></description>
<pubDate>Sat, 23 Oct 2010 02:01:45 GMT</pubDate>
<guid>http://snipplr.com/view/42781/close-the-mysql-port-3306-from-external-access/</guid>
</item>
<item>
<title>(MySQL) MySQL - Group by price range</title>
<link>http://snipplr.com/view/41322/mysql--group-by-price-range/</link>
<description><![CDATA[ <p>Group by user defined price bands.</p> ]]></description>
<pubDate>Sat, 02 Oct 2010 05:18:26 GMT</pubDate>
<guid>http://snipplr.com/view/41322/mysql--group-by-price-range/</guid>
</item>
<item>
<title>(PHP) Wordpress - show top 10 tags by usage</title>
<link>http://snipplr.com/view/40745/wordpress--show-top-10-tags-by-usage/</link>
<description><![CDATA[ <p>Show the top tags by usage.</p> ]]></description>
<pubDate>Sun, 19 Sep 2010 03:29:51 GMT</pubDate>
<guid>http://snipplr.com/view/40745/wordpress--show-top-10-tags-by-usage/</guid>
</item>
<item>
<title>(HTML) Embed a RTMP live stream with Flow Player</title>
<link>http://snipplr.com/view/39962/embed-a-rtmp-live-stream-with-flow-player/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Fri, 03 Sep 2010 18:50:10 GMT</pubDate>
<guid>http://snipplr.com/view/39962/embed-a-rtmp-live-stream-with-flow-player/</guid>
</item>
<item>
<title>(JavaScript) Embed a RTMP live stream with SWFObject v2.2 using JW Player</title>
<link>http://snipplr.com/view/39961/embed-a-rtmp-live-stream-with-swfobject-v22-using-jw-player/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Fri, 03 Sep 2010 18:42:13 GMT</pubDate>
<guid>http://snipplr.com/view/39961/embed-a-rtmp-live-stream-with-swfobject-v22-using-jw-player/</guid>
</item>
<item>
<title>(JavaScript) Launch a popunder using Javascript that has a default browser setup</title>
<link>http://snipplr.com/view/39913/launch-a-popunder-using-javascript-that-has-a-default-browser-setup/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Fri, 03 Sep 2010 00:42:29 GMT</pubDate>
<guid>http://snipplr.com/view/39913/launch-a-popunder-using-javascript-that-has-a-default-browser-setup/</guid>
</item>
<item>
<title>(PHP) Drupal 6 - Show default "Who's online" block from a template.</title>
<link>http://snipplr.com/view/39808/drupal-6--show-default-whos-online-block-from-a-template/</link>
<description><![CDATA[ <p>Embed the "Who's online" block from within a template file.</p> ]]></description>
<pubDate>Wed, 01 Sep 2010 19:01:07 GMT</pubDate>
<guid>http://snipplr.com/view/39808/drupal-6--show-default-whos-online-block-from-a-template/</guid>
</item>
<item>
<title>(PHP) Drupal 6 - Custom \"Who\'s Online\" block with private message links.</title>
<link>http://snipplr.com/view/39807/drupal-6--custom-whos-online-block-with-private-message-links/</link>
<description><![CDATA[ <p>Customises the \"who\'s online\" block to show what role type the user has + the links now point to private message instead of profiles.</p> ]]></description>
<pubDate>Wed, 01 Sep 2010 18:58:13 GMT</pubDate>
<guid>http://snipplr.com/view/39807/drupal-6--custom-whos-online-block-with-private-message-links/</guid>
</item>
<item>
<title>(PHP) Convert URLs within String into hyperlinks</title>
<link>http://snipplr.com/view/37892/convert-urls-within-string-into-hyperlinks/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sun, 25 Jul 2010 20:10:23 GMT</pubDate>
<guid>http://snipplr.com/view/37892/convert-urls-within-string-into-hyperlinks/</guid>
</item>
<item>
<title>(PHP) Get a users gravatar from their email address</title>
<link>http://snipplr.com/view/37891/get-a-users-gravatar-from-their-email-address/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sun, 25 Jul 2010 20:08:44 GMT</pubDate>
<guid>http://snipplr.com/view/37891/get-a-users-gravatar-from-their-email-address/</guid>
</item>
<item>
<title>(PHP) Get the real IP address of a user.</title>
<link>http://snipplr.com/view/37890/get-the-real-ip-address-of-a-user/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sun, 25 Jul 2010 20:06:55 GMT</pubDate>
<guid>http://snipplr.com/view/37890/get-the-real-ip-address-of-a-user/</guid>
</item>
</channel>
</rss>