<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr - Scooter</title>
<link>http://snipplr.com/users/Scooter</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Tue, 14 Feb 2012 06:17:28 GMT</pubDate>
<item>
<title>(VB.NET) Force SSL</title>
<link>http://snipplr.com/view/58863/force-ssl/</link>
<description><![CDATA[ <p>The technique that I had used for years in classic ASP didn't seem to work reliably in ASP.NET, so I switched to this based on articles on various blogs. Request and Response are fully qualified because I had trouble getting System.Web.HttpContext.Current to import in App_Code. Place the function in an App_Code library, import the library on your page, and call ForceSSL() at the top of Page_Load().</p> ]]></description>
<pubDate>Wed, 21 Sep 2011 03:15:28 GMT</pubDate>
<guid>http://snipplr.com/view/58863/force-ssl/</guid>
</item>
<item>
<title>(Windows Registry) Change Excel macro security to medium</title>
<link>http://snipplr.com/view/57658/change-excel-macro-security-to-medium/</link>
<description><![CDATA[ <p>The below is for Excel 2003, but you can probably target Office 2007 or 2010 by changing the version to 12.0 or 13.0 respectively.

At the company where I am currently working, Excel addins are used extensively by various departments. By default, Excel has macro security set to high, but some users are too dumb to read the message that tells them to change the macro security to medium, so I've added the following to our collection of registry tweaks applied during logon to take care of this automatically.</p> ]]></description>
<pubDate>Sat, 06 Aug 2011 06:36:41 GMT</pubDate>
<guid>http://snipplr.com/view/57658/change-excel-macro-security-to-medium/</guid>
</item>
<item>
<title>(Windows Registry) Symantec Antivirus Corporate Edition security settings</title>
<link>http://snipplr.com/view/57657/symantec-antivirus-corporate-edition-security-settings/</link>
<description><![CDATA[ <p>When you install Symantec Antivirus Corporate Edition, the default settings are not very secure. The following registry script will increase the security settings to a more reasonable level. This is for version 10; I suspect the settings for version 11 and 12 are stored in a similar registry location, and finding the location was the hardest part.</p> ]]></description>
<pubDate>Sat, 06 Aug 2011 06:33:03 GMT</pubDate>
<guid>http://snipplr.com/view/57657/symantec-antivirus-corporate-edition-security-settings/</guid>
</item>
<item>
<title>(SQL) Rename SQL Server Instance</title>
<link>http://snipplr.com/view/54444/rename-sql-server-instance/</link>
<description><![CDATA[ <p>When upgrading your SQL Server, it can sometimes be easier to rename the new server to match the old server rather than update all the workstations to point to the new server. The name of the SQL Server instance also needs to be changed. The following script will take care of this, but the last part which updates the SQL Agent jobs only works against the master server in a multi-server environment. If you're upgrading your master server, or your only server, it will work fine.</p> ]]></description>
<pubDate>Fri, 27 May 2011 01:05:17 GMT</pubDate>
<guid>http://snipplr.com/view/54444/rename-sql-server-instance/</guid>
</item>
<item>
<title>(VB.NET) Temperature Class</title>
<link>http://snipplr.com/view/53332/temperature-class/</link>
<description><![CDATA[ <p>This class is intended to reside within the app_code folder in your ASP.NET web site. It facilitates the storage and conversion of temperature values. See the linked blog post for usage example.</p> ]]></description>
<pubDate>Wed, 11 May 2011 09:31:48 GMT</pubDate>
<guid>http://snipplr.com/view/53332/temperature-class/</guid>
</item>
<item>
<title>(Windows Registry) Increase maximum signature length in Outlook Web Access</title>
<link>http://snipplr.com/view/46582/increase-maximum-signature-length-in-outlook-web-access/</link>
<description><![CDATA[ <p>When editing your signature in Outlook Web Access, you may have seen this error message:

> Your signature exceeds the maximum size allowed. 
> Please reduce its length or formatting before attempting to save again.

This registry tweak will increase the maximum signature length from the default 4 KB to 16 KB. Feel free to change this to a lower number if you prefer, but 16 KB is apparently the maximum possible. 

This registry tweak needs to be applied on the Exchange server itself.</p> ]]></description>
<pubDate>Thu, 06 Jan 2011 03:31:02 GMT</pubDate>
<guid>http://snipplr.com/view/46582/increase-maximum-signature-length-in-outlook-web-access/</guid>
</item>
<item>
<title>(ASP) Calculate monthly and/or annual salary</title>
<link>http://snipplr.com/view/40318/calculate-monthly-andor-annual-salary/</link>
<description><![CDATA[ <p>Requires my [WorkingDays](http://snipplr.com/view/39873/number-of-working-days-in-a-month/) function.</p> ]]></description>
<pubDate>Sat, 11 Sep 2010 06:22:51 GMT</pubDate>
<guid>http://snipplr.com/view/40318/calculate-monthly-andor-annual-salary/</guid>
</item>
<item>
<title>(VB.NET) Add and strip slashes</title>
<link>http://snipplr.com/view/40317/add-and-strip-slashes/</link>
<description><![CDATA[ <p>VB.NET implementation on the PHP functions by the same name, but with support for more problematic characters.</p> ]]></description>
<pubDate>Sat, 11 Sep 2010 06:16:59 GMT</pubDate>
<guid>http://snipplr.com/view/40317/add-and-strip-slashes/</guid>
</item>
<item>
<title>(ASP) Number of working days in a month</title>
<link>http://snipplr.com/view/39873/number-of-working-days-in-a-month/</link>
<description><![CDATA[ <p>Returns the number of working days in a month. Does not take holidays into consideration. I needed this function for the purposes of calculating employee annual salary, and holidays are paid days anyway. Requires my [MonthDays](http://snipplr.com/view/5390/number-of-days-in-a-month/) and [isLeapYear](http://snipplr.com/view/5388/check-if-a-year-is-a-leap-year/) functions.</p> ]]></description>
<pubDate>Thu, 02 Sep 2010 07:52:25 GMT</pubDate>
<guid>http://snipplr.com/view/39873/number-of-working-days-in-a-month/</guid>
</item>
<item>
<title>(SQL) Get the current date without the time in SQL Server</title>
<link>http://snipplr.com/view/28340/get-the-current-date-without-the-time-in-sql-server/</link>
<description><![CDATA[ <p>Quite often I need to select all records in a table where the date is equal to today. The GETDATE() function in Transact-SQL returns the date and the time. The time vlaue can be stripped off by subtracting each part (hour, minute, second, millisecond).</p> ]]></description>
<pubDate>Mon, 15 Feb 2010 11:49:18 GMT</pubDate>
<guid>http://snipplr.com/view/28340/get-the-current-date-without-the-time-in-sql-server/</guid>
</item>
<item>
<title>(DOS Batch) Get list of drive letters and labels</title>
<link>http://snipplr.com/view/19276/get-list-of-drive-letters-and-labels/</link>
<description><![CDATA[ <p>Someone on Serverfault was asking for a Batch script to get a list of drive letters and their associated labels on a windows system. This is my suggested answer.</p> ]]></description>
<pubDate>Fri, 04 Sep 2009 17:12:22 GMT</pubDate>
<guid>http://snipplr.com/view/19276/get-list-of-drive-letters-and-labels/</guid>
</item>
<item>
<title>(ASP) Dynamic Array Class</title>
<link>http://snipplr.com/view/15412/dynamic-array-class/</link>
<description><![CDATA[ <p>I want to do a little more work on this, but as far as I know everything should be working fine.</p> ]]></description>
<pubDate>Sat, 30 May 2009 20:37:52 GMT</pubDate>
<guid>http://snipplr.com/view/15412/dynamic-array-class/</guid>
</item>
<item>
<title>(ASP) Prime Numbers</title>
<link>http://snipplr.com/view/15252/prime-numbers/</link>
<description><![CDATA[ <p>A library of functions related to prime numbers.</p> ]]></description>
<pubDate>Sat, 23 May 2009 11:17:50 GMT</pubDate>
<guid>http://snipplr.com/view/15252/prime-numbers/</guid>
</item>
<item>
<title>(PHP) Chemistry Library</title>
<link>http://snipplr.com/view/15098/chemistry-library/</link>
<description><![CDATA[ <p>A collection of chemistry-related functions: lookup element symbol by atomic number, lookup element name by atomic number, determine electron configuration by atomic number. Requires my [proper case function](http://snipplr.com/view/6325/proper-case/)</p> ]]></description>
<pubDate>Sat, 16 May 2009 12:53:49 GMT</pubDate>
<guid>http://snipplr.com/view/15098/chemistry-library/</guid>
</item>
<item>
<title>(ASP) Chemistry Library</title>
<link>http://snipplr.com/view/15097/chemistry-library/</link>
<description><![CDATA[ <p>A collection of chemistry-related functions: lookup element symbol by atomic number, lookup element name by atomic number, determine electron configuration by atomic number. Requires my [proper case function](http://snipplr.com/view/6324/proper-case/)</p> ]]></description>
<pubDate>Sat, 16 May 2009 12:53:03 GMT</pubDate>
<guid>http://snipplr.com/view/15097/chemistry-library/</guid>
</item>
<item>
<title>(PHP) Fuel consumption</title>
<link>http://snipplr.com/view/14874/fuel-consumption/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sat, 09 May 2009 11:00:43 GMT</pubDate>
<guid>http://snipplr.com/view/14874/fuel-consumption/</guid>
</item>
<item>
<title>(ASP) Fuel consumption</title>
<link>http://snipplr.com/view/14873/fuel-consumption/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sat, 09 May 2009 11:00:22 GMT</pubDate>
<guid>http://snipplr.com/view/14873/fuel-consumption/</guid>
</item>
<item>
<title>(ASP) Regular Expressions</title>
<link>http://snipplr.com/view/14646/regular-expressions/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sat, 02 May 2009 11:23:40 GMT</pubDate>
<guid>http://snipplr.com/view/14646/regular-expressions/</guid>
</item>
<item>
<title>(PHP) Social Insurance Numbers</title>
<link>http://snipplr.com/view/14412/social-insurance-numbers/</link>
<description><![CDATA[ <p>Functions for formatting and validating Social Insurance Numbers. Requires [luhn()](http://snipplr.com/view/12893/luhn-algorithm/).</p> ]]></description>
<pubDate>Sat, 25 Apr 2009 12:25:22 GMT</pubDate>
<guid>http://snipplr.com/view/14412/social-insurance-numbers/</guid>
</item>
<item>
<title>(ASP) Social Insurance Numbers</title>
<link>http://snipplr.com/view/14411/social-insurance-numbers/</link>
<description><![CDATA[ <p>Functions for formatting and validating Social Insurance Numbers. Requires [luhn()](http://snipplr.com/view/12892/luhn-algorithm/).</p> ]]></description>
<pubDate>Sat, 25 Apr 2009 12:24:42 GMT</pubDate>
<guid>http://snipplr.com/view/14411/social-insurance-numbers/</guid>
</item>
</channel>
</rss>
