<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Snipplr</title>
    <description>Recent snippets posted on Snipplr.com</description>
    <link>https://snipplr.com/</link>
    <lastBuildDate>Tue, 09 Jun 2026 14:03:00 +0000</lastBuildDate>
    <item>
      <title>(Bash) Install the PECL uploadprogress library on Ubuntu 10 - daipratt</title>
      <link>https://snipplr.com/view/49588/install-the-pecl-uploadprogress-library-on-ubuntu-10</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Thu, 24 Feb 2011 19:52:57 UTC</pubDate>
      <guid>https://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 - daipratt</title>
      <link>https://snipplr.com/view/49157/htaccess--allow-access-only-from-certain-ips-and-ip-ranges</link>
      <description>&lt;p&gt;See here for Amazon EC2 range&#13;
https://forums.aws.amazon.com/ann.jspa?annID=877&lt;/p&gt;</description>
      <pubDate>Thu, 17 Feb 2011 20:57:52 UTC</pubDate>
      <guid>https://snipplr.com/view/49157/htaccess--allow-access-only-from-certain-ips-and-ip-ranges</guid>
    </item>
    <item>
      <title>(Bash) Install Apache, Mysql &amp; PHP via the command line in Ubuntu - daipratt</title>
      <link>https://snipplr.com/view/49047/install-apache-mysql--php-via-the-command-line-in-ubuntu</link>
      <description>&lt;p&gt;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:&#13;
sudo dpkg-reconfigure phpmyadmin&lt;/p&gt;</description>
      <pubDate>Tue, 15 Feb 2011 20:22:02 UTC</pubDate>
      <guid>https://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 - daipratt</title>
      <link>https://snipplr.com/view/48228/increase-the-maxallowedpacket-in-mysql</link>
      <description>&lt;p&gt;If you every get hit by ERROR 1153 (08S01): Got a packet bigger than 'max_allowed_packet' bytes, then this might help.&#13;
You also need to make sure that the user that you log in with has SUPER privileges on their account.&lt;/p&gt;</description>
      <pubDate>Wed, 02 Feb 2011 02:13:31 UTC</pubDate>
      <guid>https://snipplr.com/view/48228/increase-the-maxallowedpacket-in-mysql</guid>
    </item>
    <item>
      <title>(Other) Install PHP Fileinfo Extension via the command line - daipratt</title>
      <link>https://snipplr.com/view/47799/install-php-fileinfo-extension-via-the-command-line</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Tue, 25 Jan 2011 01:53:14 UTC</pubDate>
      <guid>https://snipplr.com/view/47799/install-php-fileinfo-extension-via-the-command-line</guid>
    </item>
    <item>
      <title>(Other) Install PECL uploadprogress via SSH - daipratt</title>
      <link>https://snipplr.com/view/47503/install-pecl-uploadprogress-via-ssh</link>
      <description>&lt;p&gt;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.&lt;/p&gt;</description>
      <pubDate>Wed, 19 Jan 2011 21:23:34 UTC</pubDate>
      <guid>https://snipplr.com/view/47503/install-pecl-uploadprogress-via-ssh</guid>
    </item>
    <item>
      <title>(Other) 301 redirect one domain to another using .htaccess - daipratt</title>
      <link>https://snipplr.com/view/46236/301-redirect-one-domain-to-another-using-htaccess</link>
      <description>&lt;p&gt;This will redirect all pages from one domain, to the homepage of another domain.&lt;/p&gt;</description>
      <pubDate>Wed, 29 Dec 2010 20:53:47 UTC</pubDate>
      <guid>https://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 - daipratt</title>
      <link>https://snipplr.com/view/46143/php-regex--remove-special-characters-from-a-string</link>
      <description>&lt;p&gt;This will remove all non-ascii characters / special characters from a string.&lt;/p&gt;</description>
      <pubDate>Mon, 27 Dec 2010 02:24:51 UTC</pubDate>
      <guid>https://snipplr.com/view/46143/php-regex--remove-special-characters-from-a-string</guid>
    </item>
    <item>
      <title>(MySQL) MySQL UNIX timestamp to readable date - daipratt</title>
      <link>https://snipplr.com/view/45027/mysql-unix-timestamp-to-readable-date</link>
      <description>&lt;p&gt;Convert a Drupal time stamp field into a readable format. The Drupal time stamp field is in the UNIX format.&lt;/p&gt;</description>
      <pubDate>Tue, 30 Nov 2010 02:10:24 UTC</pubDate>
      <guid>https://snipplr.com/view/45027/mysql-unix-timestamp-to-readable-date</guid>
    </item>
    <item>
      <title>(Other) Close the mysql port (3306) from external access. - daipratt</title>
      <link>https://snipplr.com/view/42781/close-the-mysql-port-3306-from-external-access</link>
      <description>&lt;p&gt;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.&lt;/p&gt;</description>
      <pubDate>Sat, 23 Oct 2010 02:01:45 UTC</pubDate>
      <guid>https://snipplr.com/view/42781/close-the-mysql-port-3306-from-external-access</guid>
    </item>
    <item>
      <title>(MySQL) MySQL - Group by price range - daipratt</title>
      <link>https://snipplr.com/view/41322/mysql--group-by-price-range</link>
      <description>&lt;p&gt;Group by user defined price bands.&lt;/p&gt;</description>
      <pubDate>Sat, 02 Oct 2010 05:18:26 UTC</pubDate>
      <guid>https://snipplr.com/view/41322/mysql--group-by-price-range</guid>
    </item>
    <item>
      <title>(PHP) Wordpress - show top 10 tags by usage - daipratt</title>
      <link>https://snipplr.com/view/40745/wordpress--show-top-10-tags-by-usage</link>
      <description>&lt;p&gt;Show the top tags by usage.&lt;/p&gt;</description>
      <pubDate>Sun, 19 Sep 2010 03:29:51 UTC</pubDate>
      <guid>https://snipplr.com/view/40745/wordpress--show-top-10-tags-by-usage</guid>
    </item>
    <item>
      <title>(JavaScript) Launch a popunder using Javascript that has a default browser setup - daipratt</title>
      <link>https://snipplr.com/view/39913/launch-a-popunder-using-javascript-that-has-a-default-browser-setup</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Fri, 03 Sep 2010 00:42:29 UTC</pubDate>
      <guid>https://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. - daipratt</title>
      <link>https://snipplr.com/view/39808/drupal-6--show-default-whos-online-block-from-a-template</link>
      <description>&lt;p&gt;Embed the "Who's online" block from within a template file.&lt;/p&gt;</description>
      <pubDate>Wed, 01 Sep 2010 19:01:07 UTC</pubDate>
      <guid>https://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. - daipratt</title>
      <link>https://snipplr.com/view/39807/drupal-6--custom-whos-online-block-with-private-message-links</link>
      <description>&lt;p&gt;Customises the \"who\'s online\" block to show what role type the user has + the links now point to private message instead of profiles.&lt;/p&gt;</description>
      <pubDate>Wed, 01 Sep 2010 18:58:13 UTC</pubDate>
      <guid>https://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 - daipratt</title>
      <link>https://snipplr.com/view/37892/convert-urls-within-string-into-hyperlinks</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Sun, 25 Jul 2010 20:10:23 UTC</pubDate>
      <guid>https://snipplr.com/view/37892/convert-urls-within-string-into-hyperlinks</guid>
    </item>
    <item>
      <title>(PHP) Get a users gravatar from their email address - daipratt</title>
      <link>https://snipplr.com/view/37891/get-a-users-gravatar-from-their-email-address</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Sun, 25 Jul 2010 20:08:44 UTC</pubDate>
      <guid>https://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. - daipratt</title>
      <link>https://snipplr.com/view/37890/get-the-real-ip-address-of-a-user</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Sun, 25 Jul 2010 20:06:55 UTC</pubDate>
      <guid>https://snipplr.com/view/37890/get-the-real-ip-address-of-a-user</guid>
    </item>
    <item>
      <title>(JavaScript) JavaScript email validation - daipratt</title>
      <link>https://snipplr.com/view/36522/javascript-email-validation</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Wed, 30 Jun 2010 17:32:12 UTC</pubDate>
      <guid>https://snipplr.com/view/36522/javascript-email-validation</guid>
    </item>
    <item>
      <title>(PHP) Display PHP error messages even when they are suppressed in the php.ini - daipratt</title>
      <link>https://snipplr.com/view/33972/display-php-error-messages-even-when-they-are-suppressed-in-the-phpini</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Thu, 06 May 2010 13:46:03 UTC</pubDate>
      <guid>https://snipplr.com/view/33972/display-php-error-messages-even-when-they-are-suppressed-in-the-phpini</guid>
    </item>
    <item>
      <title>(PHP) Active gzip on a linux server running PHP - daipratt</title>
      <link>https://snipplr.com/view/32553/active-gzip-on-a-linux-server-running-php</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Wed, 21 Apr 2010 09:06:56 UTC</pubDate>
      <guid>https://snipplr.com/view/32553/active-gzip-on-a-linux-server-running-php</guid>
    </item>
    <item>
      <title>(PHP) Validate email address in php - daipratt</title>
      <link>https://snipplr.com/view/31737/validate-email-address-in-php</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Wed, 14 Apr 2010 03:38:36 UTC</pubDate>
      <guid>https://snipplr.com/view/31737/validate-email-address-in-php</guid>
    </item>
    <item>
      <title>(Other) Drupal - display an edit link, if the user if allowed to see it - daipratt</title>
      <link>https://snipplr.com/view/28865/drupal--display-an-edit-link-if-the-user-if-allowed-to-see-it</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Wed, 24 Feb 2010 11:26:31 UTC</pubDate>
      <guid>https://snipplr.com/view/28865/drupal--display-an-edit-link-if-the-user-if-allowed-to-see-it</guid>
    </item>
    <item>
      <title>(CSS) Change the selected text colour properties - daipratt</title>
      <link>https://snipplr.com/view/27317/change-the-selected-text-colour-properties</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Fri, 29 Jan 2010 11:30:42 UTC</pubDate>
      <guid>https://snipplr.com/view/27317/change-the-selected-text-colour-properties</guid>
    </item>
    <item>
      <title>(Other) Drupal - Show the taxonomy in the format - "term(node count)" - for a given vocabulary - daipratt</title>
      <link>https://snipplr.com/view/26861/drupal--show-the-taxonomy-in-the-format--termnode-count--for-a-given-vocabulary</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Fri, 22 Jan 2010 11:34:26 UTC</pubDate>
      <guid>https://snipplr.com/view/26861/drupal--show-the-taxonomy-in-the-format--termnode-count--for-a-given-vocabulary</guid>
    </item>
    <item>
      <title>(Other) Drupal - Get the image path of a CCK field from the fid - daipratt</title>
      <link>https://snipplr.com/view/26812/drupal--get-the-image-path-of-a-cck-field-from-the-fid</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Thu, 21 Jan 2010 11:43:38 UTC</pubDate>
      <guid>https://snipplr.com/view/26812/drupal--get-the-image-path-of-a-cck-field-from-the-fid</guid>
    </item>
    <item>
      <title>(Other) Drupal - Get the image path of a CCK field - daipratt</title>
      <link>https://snipplr.com/view/26453/drupal--get-the-image-path-of-a-cck-field</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Thu, 14 Jan 2010 08:23:00 UTC</pubDate>
      <guid>https://snipplr.com/view/26453/drupal--get-the-image-path-of-a-cck-field</guid>
    </item>
    <item>
      <title>(Other) Drupal - display only the body value in a node template. - daipratt</title>
      <link>https://snipplr.com/view/26452/drupal--display-only-the-body-value-in-a-node-template</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Thu, 14 Jan 2010 08:19:19 UTC</pubDate>
      <guid>https://snipplr.com/view/26452/drupal--display-only-the-body-value-in-a-node-template</guid>
    </item>
    <item>
      <title>(jQuery) Test if an element exists in jQuery - daipratt</title>
      <link>https://snipplr.com/view/26130/test-if-an-element-exists-in-jquery</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Fri, 08 Jan 2010 06:08:00 UTC</pubDate>
      <guid>https://snipplr.com/view/26130/test-if-an-element-exists-in-jquery</guid>
    </item>
    <item>
      <title>(CSS) Reset StyleSheet that includes HTML5 elements - daipratt</title>
      <link>https://snipplr.com/view/25661/reset-stylesheet-that-includes-html5-elements</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Tue, 29 Dec 2009 10:12:32 UTC</pubDate>
      <guid>https://snipplr.com/view/25661/reset-stylesheet-that-includes-html5-elements</guid>
    </item>
    <item>
      <title>(PHP) Month bands for wordpress posts - daipratt</title>
      <link>https://snipplr.com/view/25660/month-bands-for-wordpress-posts</link>
      <description>&lt;p&gt;Stick this inside the &lt;?php&gt; and you get the month group title shown only once for that date range. Sexy.&lt;/p&gt;</description>
      <pubDate>Tue, 29 Dec 2009 10:10:06 UTC</pubDate>
      <guid>https://snipplr.com/view/25660/month-bands-for-wordpress-posts</guid>
    </item>
    <item>
      <title>(CSS) Address Microformat CSS - daipratt</title>
      <link>https://snipplr.com/view/25654/address-microformat-css</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Tue, 29 Dec 2009 09:08:01 UTC</pubDate>
      <guid>https://snipplr.com/view/25654/address-microformat-css</guid>
    </item>
    <item>
      <title>(jQuery) Determine the index of an element, properly. - daipratt</title>
      <link>https://snipplr.com/view/25372/determine-the-index-of-an-element-properly</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Thu, 24 Dec 2009 04:27:18 UTC</pubDate>
      <guid>https://snipplr.com/view/25372/determine-the-index-of-an-element-properly</guid>
    </item>
  </channel>
</rss>
