<?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 10:54:21 +0000</lastBuildDate>
    <item>
      <title>(C#) Check if a file is an executable. - jprochazka</title>
      <link>https://snipplr.com/view/71221/check-if-a-file-is-an-executable</link>
      <description>&lt;p&gt;A function to check the first two bytes to see if they match "MZ" marking it as an executable.&lt;/p&gt;</description>
      <pubDate>Sat, 18 May 2013 05:02:45 UTC</pubDate>
      <guid>https://snipplr.com/view/71221/check-if-a-file-is-an-executable</guid>
    </item>
    <item>
      <title>(SQL) Enable Ad Hoc Distributed Queries using sp_configure - jprochazka</title>
      <link>https://snipplr.com/view/70561/enable-ad-hoc-distributed-queries-using-spconfigure</link>
      <description>&lt;p&gt;Allows Ad Hoc Distributed Queries using by executing sp_configure.&lt;/p&gt;</description>
      <pubDate>Wed, 27 Mar 2013 03:49:23 UTC</pubDate>
      <guid>https://snipplr.com/view/70561/enable-ad-hoc-distributed-queries-using-spconfigure</guid>
    </item>
    <item>
      <title>(JavaScript) Allow only numberic key presses. - jprochazka</title>
      <link>https://snipplr.com/view/69756/allow-only-numberic-key-presses</link>
      <description>&lt;p&gt;The following code allows only numeric characters to be entered.&lt;/p&gt;</description>
      <pubDate>Sat, 02 Feb 2013 02:49:40 UTC</pubDate>
      <guid>https://snipplr.com/view/69756/allow-only-numberic-key-presses</guid>
    </item>
    <item>
      <title>(SQL) SQL Server: Remove extra spaces from a string. - jprochazka</title>
      <link>https://snipplr.com/view/69200/sql-server-remove-extra-spaces-from-a-string</link>
      <description>&lt;p&gt;Removes extra spaces from a string in SQL Server.&lt;/p&gt;</description>
      <pubDate>Fri, 21 Dec 2012 23:08:08 UTC</pubDate>
      <guid>https://snipplr.com/view/69200/sql-server-remove-extra-spaces-from-a-string</guid>
    </item>
    <item>
      <title>(C#) Get Entire Markup For The Supplied URL. - jprochazka</title>
      <link>https://snipplr.com/view/69122/get-entire-markup-for-the-supplied-url</link>
      <description>&lt;p&gt;Returns the entire markup making up the specified webpage.&lt;/p&gt;</description>
      <pubDate>Sat, 15 Dec 2012 08:47:24 UTC</pubDate>
      <guid>https://snipplr.com/view/69122/get-entire-markup-for-the-supplied-url</guid>
    </item>
    <item>
      <title>(VB.NET) Read an external url into a string variable. - jprochazka</title>
      <link>https://snipplr.com/view/68832/read-an-external-url-into-a-string-variable</link>
      <description>&lt;p&gt;Assigns the contents of a "url" to the string variable "result".&lt;/p&gt;</description>
      <pubDate>Fri, 30 Nov 2012 08:30:25 UTC</pubDate>
      <guid>https://snipplr.com/view/68832/read-an-external-url-into-a-string-variable</guid>
    </item>
    <item>
      <title>(VB.NET) Get the MIME type of a file. - jprochazka</title>
      <link>https://snipplr.com/view/68809/get-the-mime-type-of-a-file</link>
      <description>&lt;p&gt;By running the function GetMimeType(file.name) the following code will return the MIME type for a file.&lt;/p&gt;</description>
      <pubDate>Thu, 29 Nov 2012 03:07:25 UTC</pubDate>
      <guid>https://snipplr.com/view/68809/get-the-mime-type-of-a-file</guid>
    </item>
    <item>
      <title>(PHP) Return a string between two strings or tags. - jprochazka</title>
      <link>https://snipplr.com/view/68175/return-a-string-between-two-strings-or-tags</link>
      <description>&lt;p&gt;Returns the contents of a string between two unique strings. Useful for returning the portion of a string found between two tags such as &lt;tag&gt; and &lt;/tag&gt;&lt;/p&gt;</description>
      <pubDate>Fri, 09 Nov 2012 18:05:11 UTC</pubDate>
      <guid>https://snipplr.com/view/68175/return-a-string-between-two-strings-or-tags</guid>
    </item>
    <item>
      <title>(SQL) Microsoft SQL Server: Back up all transaction logs. - jprochazka</title>
      <link>https://snipplr.com/view/68113/microsoft-sql-server-back-up-all-transaction-logs</link>
      <description>&lt;p&gt;Backs up all database transaction logs within a Microsoft SQL Server instance except for databases set to simple recovery mode.&lt;/p&gt;</description>
      <pubDate>Tue, 06 Nov 2012 08:14:25 UTC</pubDate>
      <guid>https://snipplr.com/view/68113/microsoft-sql-server-back-up-all-transaction-logs</guid>
    </item>
    <item>
      <title>(SQL) Microsoft SQL Server: Back up all databases. - jprochazka</title>
      <link>https://snipplr.com/view/68112/microsoft-sql-server-back-up-all-databases</link>
      <description>&lt;p&gt;Backs up all databases contained in a Microsoft SQL Server instance.&lt;/p&gt;</description>
      <pubDate>Tue, 06 Nov 2012 08:11:50 UTC</pubDate>
      <guid>https://snipplr.com/view/68112/microsoft-sql-server-back-up-all-databases</guid>
    </item>
    <item>
      <title>(SQL) Microsoft SQL Server: Rename a database schema. - jprochazka</title>
      <link>https://snipplr.com/view/57796/microsoft-sql-server-rename-a-database-schema</link>
      <description>&lt;p&gt;Generates a set of queries to run which will change the schema for all items within a specified schema and change them to another.&lt;/p&gt;</description>
      <pubDate>Sat, 13 Aug 2011 01:15:34 UTC</pubDate>
      <guid>https://snipplr.com/view/57796/microsoft-sql-server-rename-a-database-schema</guid>
    </item>
    <item>
      <title>(SQL) Microsoft SQL Server: Find and replace. - jprochazka</title>
      <link>https://snipplr.com/view/46896/microsoft-sql-server-find-and-replace</link>
      <description>&lt;p&gt;Clears supplied text from database tables.&#13;
Does not clear the string out of TEXT or NTEXT tables.&lt;/p&gt;</description>
      <pubDate>Tue, 11 Jan 2011 06:06:09 UTC</pubDate>
      <guid>https://snipplr.com/view/46896/microsoft-sql-server-find-and-replace</guid>
    </item>
    <item>
      <title>(JavaScript) Validate an email address. (advanced) - jprochazka</title>
      <link>https://snipplr.com/view/41308/validate-an-email-address-advanced</link>
      <description>&lt;p&gt;The following JavaScript will validate an email address using strict rules when a form is submitted.&lt;/p&gt;</description>
      <pubDate>Sat, 02 Oct 2010 01:42:59 UTC</pubDate>
      <guid>https://snipplr.com/view/41308/validate-an-email-address-advanced</guid>
    </item>
    <item>
      <title>(PHP) Validate an email address. - jprochazka</title>
      <link>https://snipplr.com/view/41306/validate-an-email-address</link>
      <description>&lt;p&gt;The following function does a very simple check on the supplied string to help ensure it is a valid email address.&lt;/p&gt;</description>
      <pubDate>Sat, 02 Oct 2010 01:37:40 UTC</pubDate>
      <guid>https://snipplr.com/view/41306/validate-an-email-address</guid>
    </item>
    <item>
      <title>(PHP) Validate a domain name. - jprochazka</title>
      <link>https://snipplr.com/view/41305/validate-a-domain-name</link>
      <description>&lt;p&gt;The following function validates and returns TRUE or FALSE if the supplied string could be a valid domain name format.&lt;/p&gt;</description>
      <pubDate>Sat, 02 Oct 2010 01:37:35 UTC</pubDate>
      <guid>https://snipplr.com/view/41305/validate-a-domain-name</guid>
    </item>
    <item>
      <title>(PHP) Get a visitor\'s real IP address. - jprochazka</title>
      <link>https://snipplr.com/view/41303/get-a-visitors-real-ip-address</link>
      <description>&lt;p&gt;A more reliable way to obtain a visitor's IP address.&lt;/p&gt;</description>
      <pubDate>Sat, 02 Oct 2010 01:37:05 UTC</pubDate>
      <guid>https://snipplr.com/view/41303/get-a-visitors-real-ip-address</guid>
    </item>
    <item>
      <title>(PHP) Make a \"SEO Friendly URL\" string. - jprochazka</title>
      <link>https://snipplr.com/view/41302/make-a-seo-friendly-url-string</link>
      <description>&lt;p&gt;The following function will return a SEO friendly URL using a supplied string.&lt;/p&gt;</description>
      <pubDate>Sat, 02 Oct 2010 01:36:46 UTC</pubDate>
      <guid>https://snipplr.com/view/41302/make-a-seo-friendly-url-string</guid>
    </item>
    <item>
      <title>(PHP) Send an email. (simple) - jprochazka</title>
      <link>https://snipplr.com/view/41301/send-an-email-simple</link>
      <description>&lt;p&gt;A simple example of how to send an email using PHP's build in mail() function.&lt;/p&gt;</description>
      <pubDate>Sat, 02 Oct 2010 01:36:42 UTC</pubDate>
      <guid>https://snipplr.com/view/41301/send-an-email-simple</guid>
    </item>
    <item>
      <title>(PHP) Find the \"SEO Friendly\" title in a URL. - jprochazka</title>
      <link>https://snipplr.com/view/41300/find-the-seo-friendly-title-in-a-url</link>
      <description>&lt;p&gt;Finds an "SEO Friendly" title placed in the URL after the domain and returns the value.&lt;/p&gt;</description>
      <pubDate>Sat, 02 Oct 2010 01:36:22 UTC</pubDate>
      <guid>https://snipplr.com/view/41300/find-the-seo-friendly-title-in-a-url</guid>
    </item>
    <item>
      <title>(PHP) Get a directory listing. - jprochazka</title>
      <link>https://snipplr.com/view/41299/get-a-directory-listing</link>
      <description>&lt;p&gt;List files within a directory while ignoring system folders such as "Thumbs.db" as well as "." and "..".&lt;/p&gt;</description>
      <pubDate>Sat, 02 Oct 2010 01:34:52 UTC</pubDate>
      <guid>https://snipplr.com/view/41299/get-a-directory-listing</guid>
    </item>
    <item>
      <title>(PHP) Generate a random string. - jprochazka</title>
      <link>https://snipplr.com/view/41298/generate-a-random-string</link>
      <description>&lt;p&gt;This function returns a random string composed of the characters contained within the "$string" variable of the function.&lt;/p&gt;</description>
      <pubDate>Sat, 02 Oct 2010 01:32:48 UTC</pubDate>
      <guid>https://snipplr.com/view/41298/generate-a-random-string</guid>
    </item>
    <item>
      <title>(PHP) Send a file via FTP. - jprochazka</title>
      <link>https://snipplr.com/view/41297/send-a-file-via-ftp</link>
      <description>&lt;p&gt;A simple example of how to send a file via FTP using PHP.&lt;/p&gt;</description>
      <pubDate>Sat, 02 Oct 2010 01:32:43 UTC</pubDate>
      <guid>https://snipplr.com/view/41297/send-a-file-via-ftp</guid>
    </item>
    <item>
      <title>(Regular Expression) Simple Regular Expression matches. - jprochazka</title>
      <link>https://snipplr.com/view/41295/simple-regular-expression-matches</link>
      <description>&lt;p&gt;Simple Regular Expression match strings.&lt;/p&gt;</description>
      <pubDate>Sat, 02 Oct 2010 01:32:12 UTC</pubDate>
      <guid>https://snipplr.com/view/41295/simple-regular-expression-matches</guid>
    </item>
    <item>
      <title>(JavaScript) Validte a telephone number. - jprochazka</title>
      <link>https://snipplr.com/view/41294/validte-a-telephone-number</link>
      <description>&lt;p&gt;The following JavaScript will validate if a 10 digit phone number was supplied once the form is submitted.&lt;/p&gt;</description>
      <pubDate>Sat, 02 Oct 2010 01:32:07 UTC</pubDate>
      <guid>https://snipplr.com/view/41294/validte-a-telephone-number</guid>
    </item>
    <item>
      <title>(ASP) Block inheritance of the root web.config to child applications. - jprochazka</title>
      <link>https://snipplr.com/view/41291/block-inheritance-of-the-root-webconfig-to-child-applications</link>
      <description>&lt;p&gt;Using inheritInChildApplications="false" within a &lt;location&gt; can stop the Web.config section it surrounds from being inherited by applications located within said application.&lt;/p&gt;</description>
      <pubDate>Sat, 02 Oct 2010 01:30:24 UTC</pubDate>
      <guid>https://snipplr.com/view/41291/block-inheritance-of-the-root-webconfig-to-child-applications</guid>
    </item>
  </channel>
</rss>
