<?xml version='1.0' encoding='UTF-8'?><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/" xmlns:blogger="http://schemas.google.com/blogger/2008" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr="http://purl.org/syndication/thread/1.0" version="2.0"><channel><atom:id>tag:blogger.com,1999:blog-1655071323937460588</atom:id><lastBuildDate>Thu, 15 Oct 2026 18:34:06 +0000</lastBuildDate><category>Code</category><category>Agile</category><category>Git</category><category>Helpers</category><category>Search</category><category>programming personality</category><category>ASP.NET</category><category>ASP.NET AJAX</category><category>IIS</category><category>NuGet</category><category>SQL</category><category>Solr</category><category>Technologies</category><title>Paige C#</title><description></description><link>http://paigecsharp.blogspot.com/</link><managingEditor>noreply@blogger.com (Paige Cook)</managingEditor><generator>Blogger</generator><openSearch:totalResults>97</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1655071323937460588.post-2638130858693837623</guid><pubDate>Thu, 08 Aug 2013 12:52:00 +0000</pubDate><atom:updated>2013-12-02T07:53:08.344-05:00</atom:updated><title>Web Essentials Goodness - Paste XML/JSON As Classes</title><description>I recently have been working on project where I have been evaluating some vendor APIs. Across the multiple vendors the responses have been in either XML or JSON. Since I am most familiar with .NET development, I have been creating my testing clients in C# after verifying the responses from the API with Fiddler. So in many cases once I have seen the XML/JSON output, I want to be able to download that data into my application as a class. Thankfully, the &lt;a href=&quot;http://vswebessentials.com/&quot;&gt;Web Essentials Visual Studio extension by Mads Kristensen&lt;/a&gt;, includes two excellent options. Paste XML As Classes and Paste JSON As Classes. With these two options ( from the File-&amp;gt;Paste Special menu) when you have a class open you can paste any JSON or XML object and the extension will generate a class that corresponds to the document for you. In some cases (especially with XML) you may need to perform some additional clean up of local variable names, etc. But in the long run this has saved me lots of keystrokes. Below are a couple of examples.&lt;br /&gt;
&lt;br /&gt;
JSON Object&lt;br /&gt;
&lt;script src=&quot;https://gist.github.com/paigecook/6184225.js&quot;&gt;&lt;/script&gt;

Corresponding Class created with Paste JSON as Classes&lt;br /&gt;
&lt;br /&gt;
&lt;script src=&quot;https://gist.github.com/paigecook/6184235.js&quot;&gt;&lt;/script&gt;

XML Object&lt;br /&gt;
&lt;br /&gt;
&lt;script src=&quot;https://gist.github.com/paigecook/6184276.js&quot;&gt;&lt;/script&gt;

Corresponding Class created with Paste XML as Classes&lt;br /&gt;
&lt;br /&gt;
&lt;script src=&quot;https://gist.github.com/paigecook/6184256.js&quot;&gt;&lt;/script&gt;

As I stated earlier, the variable names in the classes created for this XML object could use a little clean up, but with a good refactoring tool, this should not be a difficult task and something that I find much more enjoyable than creating the entire file by hand.&lt;br /&gt;
&lt;br /&gt;
Hope that you find this useful and that it can save you some time.</description><link>http://paigecsharp.blogspot.com/2013/08/web-essentials-goodness-paste-xmljson.html</link><author>noreply@blogger.com (Paige Cook)</author><thr:total>7</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1655071323937460588.post-666207831148813306</guid><pubDate>Tue, 09 Oct 2012 19:39:00 +0000</pubDate><atom:updated>2012-10-09T15:39:15.122-04:00</atom:updated><title>Web Api - Ninject &amp; IHttpControllerActivator</title><description>I was reading through the following blog posts today by &lt;a href=&quot;http://blog.ploeh.dk/default.aspx&quot;&gt;Mike Seemann&lt;/a&gt;:&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;Dependency Injection and Lifetime Management with ASP.NET Web Api&lt;/li&gt;
&lt;li&gt;Dependency Injection in ASP.NET Web Api with Castle Windsor&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
In his posts, Mike shows how to use the IHttpControllerActivator to wire up Dependency Injection (DI) without using the built in IDependencyResolver in the Web Api bite. After reading through both of these, I was inspired to create the Ninject based equivalent DI leveraging the IHttpControllerActivator.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Here is the class that I created for this:&lt;/div&gt;
&lt;div&gt;
&lt;script src=&quot;https://gist.github.com/3860942.js?file=NinjectKernelActivator.cs&quot;&gt;&lt;/script&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
A complete sample application is available from&amp;nbsp;&lt;a href=&quot;https://github.com/paigecook/WebApiNinjectIHttpControllerActivator&quot;&gt;https://github.com/paigecook/WebApiNinjectIHttpControllerActivator&lt;/a&gt;&lt;/div&gt;
</description><link>http://paigecsharp.blogspot.com/2012/10/web-api-ninject-ihttpcontrolleractivator.html</link><author>noreply@blogger.com (Paige Cook)</author><thr:total>3</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1655071323937460588.post-8315269008725126613</guid><pubDate>Wed, 19 Sep 2012 12:16:00 +0000</pubDate><atom:updated>2012-09-19T08:16:35.540-04:00</atom:updated><title>ELMAH &amp; ASP.NET MVC</title><description>If you are planning to use &lt;a href=&quot;http://code.google.com/p/elmah&quot;&gt;ELMAH - Error Logging Modules and Handlers&lt;/a&gt; with your MVC application , I would like to recommend the following resources to assist you.&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;http://joel.net/logging-errors-with-elmah-in-asp.net-mvc-3--part-1--setup&quot;&gt;Logging Errors with ELMAH and MVC 3&lt;/a&gt;&amp;nbsp;- This is a great 5 part walk through of how to setup Elmah within your MVC 3 (and MVC 4) application and even includes a great way to log JavaScript errors as well. It covers the following:&lt;/li&gt;
&lt;ul&gt;
&lt;li&gt;Setup&lt;/li&gt;
&lt;li&gt;Notifications&lt;/li&gt;
&lt;li&gt;Filtering&lt;/li&gt;
&lt;li&gt;HandleErrorAttribute&lt;/li&gt;
&lt;li&gt;JavaScript&lt;/li&gt;
&lt;/ul&gt;
&lt;li&gt;&lt;a href=&quot;http://nuget.org/packages/elmah.mvc&quot;&gt;Elmah.MVC NuGet Package&lt;/a&gt; - &quot;for painless integration of ELMAH into ASP.NET MVC&quot;. Provides the following:&lt;/li&gt;
&lt;ul&gt;
&lt;li&gt;Custom route and Handler (uses /elmah by default instead of /elmah.axd), but you can specify your own &amp;nbsp;as well.&lt;/li&gt;
&lt;li&gt;Prebuilt HandleErrorAttribute&lt;/li&gt;
&lt;li&gt;Supports both C# &amp;amp; VB.NET applications&lt;/li&gt;
&lt;li&gt;Configurable authorization rules&lt;/li&gt;
&lt;/ul&gt;
&lt;/ul&gt;
&lt;div&gt;
So, if you are using ELMAH with ASP.NET MVC, please do yourself and favor and checkout these resources to make using ELMAH easier and better. And if you are not currently using ELMAH, I would urge to consider using it, as it provides easy and simple error logging for your MVC or WebForms ASP.NET applications.&amp;nbsp;&lt;/div&gt;
</description><link>http://paigecsharp.blogspot.com/2012/09/elmah-aspnet-mvc.html</link><author>noreply@blogger.com (Paige Cook)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1655071323937460588.post-329982521513914446</guid><pubDate>Wed, 12 Sep 2012 12:38:00 +0000</pubDate><atom:updated>2012-09-17T08:25:36.108-04:00</atom:updated><title>VS 2012 Color Theme Editor Extension &amp; ReSharper 7.0</title><description>I just installed the excellent Visual Studio Extension - &lt;a href=&quot;http://visualstudiogallery.msdn.microsoft.com/366ad100-0003-4c9a-81a8-337d4e7ace05&quot;&gt;VS 2012 Color Theme Editor&lt;/a&gt;. This is the newly updated version that is compatible with VS 2012. I was running this on VS 2010 and loved being able to use some of the built in or create my own custom color theme. One of my favorite improvements with the VS 2012 version is the ability to mix the editor/IDE experience of the built in Light &amp;amp; Dark themes in VS 2012. Two of the available options in the Color Theme Editor are &quot;Light with Dark Editor&quot; and &quot;Dark with Light Editor&quot;. I have chosen the &quot;Light with Dark Editor&quot; option and have been loving it so far.&lt;br /&gt;
&lt;br /&gt;
One thing to be careful with right now however, is that there is an issue with the Theme menu that is added to the VS menu bar with this extension if you also have ReSharper 7.0 installed. The menu should show you all of the available built-in Color Themes and allow you select one, however, that list is not displaying properly when ReSharper 7.0 is installed. However, there is a workaround -- You can still access and select the themes by selecting Tools-&amp;gt;Options-&amp;gt;Environment-&amp;gt;General and these new color themes are listed in the&amp;nbsp;drop down&amp;nbsp;menu there.Also the Editor behavior is a little off as well and it cannot properly show the available themes to allow you copy one of those as your starting point. Hopefully the author will work with JetBrains to figure out the issues and get this fixed before too long.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Update:&lt;/b&gt; This issue has been corrected with the release of &lt;a href=&quot;http://visualstudiogallery.msdn.microsoft.com/366ad100-0003-4c9a-81a8-337d4e7ace05?SRC=Home&quot;&gt;version 2.1&lt;/a&gt; of the extension. If you are running ReSharper, please make sure to update to this version or a later release.</description><link>http://paigecsharp.blogspot.com/2012/09/vs-2012-color-theme-editor-extension.html</link><author>noreply@blogger.com (Paige Cook)</author><thr:total>1</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1655071323937460588.post-7340501588423753705</guid><pubDate>Wed, 29 Aug 2012 18:02:00 +0000</pubDate><atom:updated>2012-08-29T14:02:20.489-04:00</atom:updated><title>WordPress on IIS 7</title><description>Today I installed WordPress on IIS 7.X (Windows 2008 R2 Server). The initial setup was very easy thanks to the use of the &lt;a href=&quot;http://www.microsoft.com/web/downloads/platform.aspx&quot;&gt;Web Platform Installer (WebPI)&lt;/a&gt; I selected the following options:

&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Products&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;PHP 5.3.10&lt;/li&gt;
&lt;li&gt;MySQL Windows 5.1&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
&lt;b&gt;Applications&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;ul&gt;
&lt;li&gt;WordPress&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
It was very simple to setup and within about 10-15 minutes (including) download times, I had a WordPress site running with IIS 7.X on my Windows 2008 R2 server.&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
One thing of &amp;nbsp;note was that WordPress wanted to update to a later release and when I clicked the Update button, it kept failing with an error of being unable to unzip the update. After some searching I found this article - &lt;a href=&quot;http://www.technoogies.com/2011/wordpress-and-plugin-updates-on-iis7-fail-a-lot&quot;&gt;WordPress and Plugin Updates on IIS7 Fail a Lot&lt;/a&gt; that walked me through the steps to get the update working by modifying permissions for the IUSR and Network Service accounts on my server.&lt;/div&gt;
</description><link>http://paigecsharp.blogspot.com/2012/08/wordpress-on-iis-7.html</link><author>noreply@blogger.com (Paige Cook)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1655071323937460588.post-892630489971120421</guid><pubDate>Wed, 13 Jun 2012 14:19:00 +0000</pubDate><atom:updated>2012-06-13T10:19:33.467-04:00</atom:updated><title>RegEx: Remove Line Numbers</title><description>Found this Regex to replace any line starting with one or more numbers followed by colon - 

&lt;pre&gt;\b[0-9]*:&lt;/pre&gt;

I used this today for removing line numbers from code a snippet I copied off of a web page.</description><link>http://paigecsharp.blogspot.com/2012/06/regex-remove-line-numbers.html</link><author>noreply@blogger.com (Paige Cook)</author><thr:total>1</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1655071323937460588.post-4166680608233026475</guid><pubDate>Thu, 31 May 2012 14:09:00 +0000</pubDate><atom:updated>2012-05-31T10:11:07.628-04:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Git</category><category domain="http://www.blogger.com/atom/ns#">NuGet</category><title>NuGet Package Restore Tips</title><description>I recently have started using the &lt;a href=&quot;http://docs.nuget.org/docs/workflows/using-nuget-without-committing-packages&quot;&gt;NuGet Package Restore&lt;/a&gt; option in all of my .NET projects. This is a great new feature that was enabled with NuGet version 1.6. I followed this blog post &lt;a href=&quot;http://coderjournal.com/2011/12/cleaning-up-your-git-repository-for-nuget-1-6/&quot;&gt;Cleaning Up Your Git Repository for NuGet 1.6&lt;/a&gt; and saw my&amp;nbsp;repository&amp;nbsp;size shrink drastically, a very good thing.&lt;br /&gt;
&lt;br /&gt;
However, I noticed that when I enabled Package Restore that Git was excluding my NuGet.exe file in the solution .nuget folder. This was based on my having a &lt;i&gt;*.exe&lt;/i&gt; entry in my .gitignore file. I was able to manually add the file by issuing the command &lt;i&gt;git add -F NuGet.exe&lt;/i&gt; from the git command line. This worked but I wanted to find a better way. I tried a few different entries in the .gitignore file unsuccessfully. Then today, I had this issue again and did some more research and found this &lt;a href=&quot;http://stackoverflow.com/questions/7374591/recursively-include-nuget-dlls-via-gitignore&quot;&gt;Answer on StackOverflow&lt;/a&gt; about putting an additional .gitignore file in the .nuget folder and explicitly including all executables via a &lt;i&gt;!*.exe&lt;/i&gt; line. This worked great.</description><link>http://paigecsharp.blogspot.com/2012/05/nuget-package-restore-tips.html</link><author>noreply@blogger.com (Paige Cook)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1655071323937460588.post-8211885753796110606</guid><pubDate>Fri, 18 May 2012 12:45:00 +0000</pubDate><atom:updated>2012-05-18T08:45:22.066-04:00</atom:updated><title>How to get Application Version</title><description>Ever need to the the version of your application? For example showing the version of a executable (a console application, for example). Then you can do that with a single line of code&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; font-family: Arial, &#39;Liberation Sans&#39;, &#39;DejaVu Sans&#39;, sans-serif; font-size: 14px; line-height: 18px; text-align: left;&quot;&gt;Assembly.GetExecutingAssembly().GetName().Version&lt;/span&gt;
&lt;br /&gt;
&lt;br /&gt;
Please note that Version is of the type &lt;a href=&quot;http://msdn.microsoft.com/en-us/library/system.version.aspx&quot;&gt;System.Version&lt;/a&gt; that contains properties for the major and minor revisions and others if needed.</description><link>http://paigecsharp.blogspot.com/2012/05/how-to-get-application-version.html</link><author>noreply@blogger.com (Paige Cook)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1655071323937460588.post-4956094331660788583</guid><pubDate>Thu, 10 May 2012 18:02:00 +0000</pubDate><atom:updated>2012-05-10T14:02:06.567-04:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">ASP.NET</category><category domain="http://www.blogger.com/atom/ns#">IIS</category><category domain="http://www.blogger.com/atom/ns#">SQL</category><title>IIS Application Pool Identity access to SQL Server</title><description>&lt;span style=&quot;background-color: white; color: #5b5b5b; font-family: Tahoma, Arial, Helvetica; font-size: 14px; text-align: left;&quot;&gt;I recently had a need to connect to a SQL Server Express 2008 R2 instance using the &#39;Integrated Security=SSPI&quot; option in my connectionString setting. Of course when I ran the site the first time, I got an error stating that IIS APPPOOL\{MyApplicationPoolName} could not access the database. So after a little searching, I found this post&lt;i&gt;&lt;a href=&quot;http://www.blogger.com/goog_66961636&quot;&gt;&amp;nbsp;&lt;/a&gt;&lt;/i&gt;&lt;/span&gt;&lt;span style=&quot;color: #5b5b5b; font-family: Tahoma, Arial, Helvetica;&quot;&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;&lt;i&gt;&lt;a href=&quot;http://forums.iis.net/t/1174325.aspx&quot;&gt;ApplicationPoolIdentity IIS 7.5 to SQL Server 2008 R2 not working.&lt;/a&gt;&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #5b5b5b; font-family: Tahoma, Arial, Helvetica; font-size: 14px; text-align: left;&quot;&gt;&amp;nbsp;on the IIS Forums that provided the proper steps to grant the Application Pool Identity access to the database&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #5b5b5b; font-family: Tahoma, Arial, Helvetica; font-size: 14px; text-align: left;&quot;&gt;.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #5b5b5b; font-family: Tahoma, Arial, Helvetica; font-size: 14px; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #5b5b5b; font-family: Tahoma, Arial, Helvetica; font-size: 14px; text-align: left;&quot;&gt;The necessary steps from the post are below for reference.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #5b5b5b; font-family: Tahoma, Arial, Helvetica; font-size: 14px; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #5b5b5b; font-family: Tahoma, Arial, Helvetica; font-size: 14px; text-align: left;&quot;&gt;In&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #5b5b5b; font-family: Tahoma, Arial, Helvetica; font-size: 14px; text-align: left;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;b style=&quot;background-color: white; color: #5b5b5b; font-family: Tahoma, Arial, Helvetica; font-size: 14px; text-align: left;&quot;&gt;SQL Server Management Studio&lt;/b&gt;&lt;span style=&quot;background-color: white; color: #5b5b5b; font-family: Tahoma, Arial, Helvetica; font-size: 14px; text-align: left;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #5b5b5b; font-family: Tahoma, Arial, Helvetica; font-size: 14px; text-align: left;&quot;&gt;...&lt;/span&gt;&lt;br /&gt;
&lt;ul style=&quot;background-color: white; color: #5b5b5b; font-family: Tahoma, Arial, Helvetica; font-size: 14px; list-style-image: initial; list-style-position: initial; list-style-type: none; margin-bottom: 10px; margin-left: 30px; margin-right: 0px; margin-top: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left;&quot;&gt;&lt;ul style=&quot;list-style-image: initial; list-style-position: initial; list-style-type: none; margin-bottom: 10px; margin-left: 30px; margin-right: 0px; margin-top: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
&lt;li style=&quot;list-style-image: initial; list-style-position: initial; list-style-type: disc; margin-bottom: 1em; margin-left: 1em; margin-right: 1em; margin-top: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;connect to your SQL Server and navigate to&amp;nbsp;&lt;b&gt;Security - Logins&lt;/b&gt;&amp;nbsp;in Object Explorer.&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/li&gt;
&lt;li style=&quot;list-style-image: initial; list-style-position: initial; list-style-type: disc; margin-bottom: 1em; margin-left: 1em; margin-right: 1em; margin-top: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;Add a new login:&lt;/li&gt;
&lt;ul style=&quot;list-style-image: initial; list-style-position: initial; list-style-type: none; margin-bottom: 10px; margin-left: 30px; margin-right: 0px; margin-top: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
&lt;li style=&quot;list-style-image: initial; list-style-position: initial; list-style-type: disc; margin-bottom: 1em; margin-left: 1em; margin-right: 1em; margin-top: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;Create a Windows login with the name of your application pool. Use the virtual domain name &quot;IIS AppPool&quot;, like: &quot;&lt;b&gt;IIS AppPool&lt;/b&gt;\&lt;b&gt;&lt;i&gt;{YourApplicationPoolName}&lt;/i&gt;&lt;/b&gt;&quot;&lt;br /&gt;&lt;br /&gt;&lt;i&gt;(Dont&#39; forget to use the real application pool name after the backslash, e.g.: &quot;&lt;b&gt;IIS AppPool&lt;/b&gt;\&lt;b&gt;DefaultAppPool&lt;/b&gt;&quot;)&lt;/i&gt;&lt;/li&gt;
&lt;li style=&quot;list-style-image: initial; list-style-position: initial; list-style-type: disc; margin-bottom: 1em; margin-left: 1em; margin-right: 1em; margin-top: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;Assign the new login to your database(s) in the User Mapping page of the New Login dialog.&lt;br /&gt;Give it any user name you find appropriate.&lt;/li&gt;
&lt;li style=&quot;list-style-image: initial; list-style-position: initial; list-style-type: disc; margin-bottom: 1em; margin-left: 1em; margin-right: 1em; margin-top: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;Save and close the New Login dialog.&lt;/li&gt;
&lt;/ul&gt;
&lt;li style=&quot;list-style-image: initial; list-style-position: initial; list-style-type: disc; margin-bottom: 1em; margin-left: 1em; margin-right: 1em; margin-top: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;In Object Explorer ...&lt;/li&gt;
&lt;ul style=&quot;list-style-image: initial; list-style-position: initial; list-style-type: none; margin-bottom: 10px; margin-left: 30px; margin-right: 0px; margin-top: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
&lt;li style=&quot;list-style-image: initial; list-style-position: initial; list-style-type: disc; margin-bottom: 1em; margin-left: 1em; margin-right: 1em; margin-top: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;Navigate to your database, then navigate to&amp;nbsp;&lt;b&gt;Security - Users&lt;/b&gt;&lt;/li&gt;
&lt;li style=&quot;list-style-image: initial; list-style-position: initial; list-style-type: disc; margin-bottom: 1em; margin-left: 1em; margin-right: 1em; margin-top: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;Navigate to your new user and set permissions according to your needs.&lt;/li&gt;
&lt;/ul&gt;
&lt;/ul&gt;
&lt;/ul&gt;
&lt;br class=&quot;Apple-interchange-newline&quot; /&gt;</description><link>http://paigecsharp.blogspot.com/2012/05/iis-application-pool-identity-access-to.html</link><author>noreply@blogger.com (Paige Cook)</author><thr:total>4</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1655071323937460588.post-3048940221157817392</guid><pubDate>Mon, 30 Apr 2012 13:13:00 +0000</pubDate><atom:updated>2012-04-30T09:13:51.337-04:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Search</category><category domain="http://www.blogger.com/atom/ns#">Solr</category><title>Solr 3.6</title><description>I am excited to see the latest improvements that are now available in Solr 3.6. Please see the following links for more details about the latest release:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;http://www.lucidimagination.com/blog/2012/04/12/lucene-solr-3-6-released/&quot;&gt;Lucene / Solr 3.6 Released&lt;/a&gt;&amp;nbsp;- Blog post by the Solr Project Manager - Robert Muir&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://lucene.apache.org/solr/solrnews.html#12-april-2012-apache-solr-360-available&quot;&gt;Solr 3.6 Release Notes&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
For me the I am most looking forward to the improved &lt;a href=&quot;http://wiki.apache.org/solr/AnalyzersTokenizersTokenFilters#solr.HTMLStripCharFilterFactory&quot;&gt;HtmlStripCharFilterFactory&lt;/a&gt; and improvements to the &lt;a href=&quot;http://wiki.apache.org/solr/Suggester#SpellCheckComponent_configuration&quot;&gt;FST based Suggesters&lt;/a&gt;.&lt;/div&gt;</description><link>http://paigecsharp.blogspot.com/2012/04/solr-36.html</link><author>noreply@blogger.com (Paige Cook)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1655071323937460588.post-8839041137418986454</guid><pubDate>Mon, 23 Jan 2012 13:43:00 +0000</pubDate><atom:updated>2012-01-23T08:43:56.554-05:00</atom:updated><title>TFS Compare Tool</title><description>The very first thing you should do before starting to use the TFS explorer, is to replace the Diff/Compare Tool. The one that comes with Visual Studio is pretty bad. Here is a good blog post - &lt;a href=&quot;http://fooberry.com/2008/10/24/replacing-tfs-diff-tool/&quot;&gt;Replacing the TFS Diff Tool&lt;/a&gt; that shows how to quickly setup a new tool. 

&lt;br&gt;&lt;br&gt;
I prefer to use &lt;a href=&quot;http://www.sourcegear.com/diffmerge/&quot;&gt;SourceGear DiffMerge&lt;/a&gt;, but you can use whatever you like. Just, please do yourself a favor and change it to something other than the default.</description><link>http://paigecsharp.blogspot.com/2012/01/tfs-compare-tool.html</link><author>noreply@blogger.com (Paige Cook)</author><thr:total>4</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1655071323937460588.post-3283402748378388161</guid><pubDate>Wed, 17 Aug 2011 13:43:00 +0000</pubDate><atom:updated>2011-08-17T09:44:17.914-04:00</atom:updated><title>Following Open Source via RSS</title><description>I have recently been working on an ASP.NET MVC project, where I have included many Open Source projects. Most of them were included using &lt;a href=&quot;http://nuget.org&quot;&gt;NuGet&lt;/a&gt; (a great tool by the way, you should get it if you don&#39;t already have it!). So, for a lot of these open source projects that I an now using, I like to keep track of what changes are happening in the projects. A great way that I have found to do this, is to track the commits to the projects via RSS. I have subscribed to the RSS feed of the commits for the projects in &lt;a href=&quot;http://google.com/reader&quot;&gt;Google Reader&lt;/a&gt; and then grouped them into an OpenSource folder that I can monitor. For me, this is a really easy way to see what is happening on a project and to watch out for interesting updates.</description><link>http://paigecsharp.blogspot.com/2011/08/following-open-source-via-rss.html</link><author>noreply@blogger.com (Paige Cook)</author><thr:total>6</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1655071323937460588.post-3281940512007344129</guid><pubDate>Tue, 14 Jun 2011 11:46:00 +0000</pubDate><atom:updated>2011-06-14T07:46:16.437-04:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Git</category><title>My Git Ignore File</title><description>I am using Git more and more these days and I really love how easy it is create branches and switch between them. If you have not tried out Git before, I really would encourage you to do so. Here is my current .gitignore file. This file basically tells Git what files to exclude when looking at a repository for changes, etc.&lt;br /&gt;
&lt;br /&gt;
&lt;script src=&quot;https://gist.github.com/1024746.js?file=.gitignore&quot;&gt;&lt;/script&gt;</description><link>http://paigecsharp.blogspot.com/2011/06/my-git-ignore-file.html</link><author>noreply@blogger.com (Paige Cook)</author><thr:total>2</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1655071323937460588.post-2188063662573043516</guid><pubDate>Tue, 31 May 2011 12:31:00 +0000</pubDate><atom:updated>2011-05-31T08:31:44.150-04:00</atom:updated><title>Entity Framework Serialization - Circular Reference</title><description>I have been working with &lt;a href=&quot;http://knockoutjs.com&quot;&gt;KnockoutJS&lt;/a&gt; recently and needed to serialize an Entity Framework model to the client as JavaScript so that I could convert it to my Knockout ViewModel. Here is the entity that I needed to serialize.&lt;br /&gt;
&lt;br /&gt;
&lt;script src=&quot;https://gist.github.com/1000421.js?file=Person.cs&quot;&gt;&lt;/script&gt;&lt;br /&gt;
&lt;br /&gt;
However, when I attempted to serialize this object, I was getting an error &lt;b&gt;&quot;A circular reference was detected while serializing and object of type Person&quot;&lt;/b&gt;. I did a little research on this issue and found a good blog post by Rick Strahl on &lt;a href=&quot;http://www.west-wind.com/weblog/posts/2007/Sep/02/LINQ-to-SQL-and-Serialization&quot;&gt;LINQ to SQL and Serialization&lt;/a&gt;, that discusses this issue. &lt;br /&gt;
&lt;br /&gt;
The problem is the public Tags property. The first suggestion is to change the access modifier from public to internal. I did this and it worked great. I have not fully explored the ramifications of making this change to the rest of my application, but will post an update if I find anything.</description><link>http://paigecsharp.blogspot.com/2011/05/entity-framework-serialization-circular.html</link><author>noreply@blogger.com (Paige Cook)</author><thr:total>1</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1655071323937460588.post-2988305102764975025</guid><pubDate>Mon, 25 Apr 2011 15:20:00 +0000</pubDate><atom:updated>2011-04-25T11:20:07.421-04:00</atom:updated><title>Synergy 1.4.2 with Mac as Server and Windows 7 Client</title><description>I was setting up &lt;a href=&quot;http://synergy-foss.org/&quot;&gt;Synergy &lt;/a&gt;today so that I could control my Windows 7 laptop from my Mac. So I went out and installed the latest version of Synergy - 1.4.2 and I followed the great &lt;a href=&quot;http://www.dusanvuckovic.com/tutorials-2/interoperability/multiple-computers-with-one-keyboard-and-mouse-synergy/&quot;&gt;installation guide&lt;/a&gt; to get everything setup. Note that I also am using &lt;a href=&quot;http://www.volker-lanz.de/software/qsynergy&quot;&gt;QSynergy&lt;/a&gt; to get the GUI on the Mac. I have my Synergy setup with my Mac as the server and Windows 7 as a client. Once I had everything set, I was able to move my mouse over to the Windows 7 machine, but the keyboard was not working. So I did some googling and came across &lt;a href=&quot;http://synergy-foss.org/pm/issues/57&quot;&gt;issue #57&lt;/a&gt; on the Synergy Support forums that describes this issue. According to this, it looks like the official fix for this will not be ready until version 1.4.4 of Synergy is released. However, Matthew Toso posted the 1.4.2 version of synergys with a patch applied for this issue. See &lt;a href=&quot;http://synergy-foss.org/pm/issues/57#note-82&quot;&gt;note #82 in this thread&lt;/a&gt;. Once I installed the patched synergys on my Mac, the keyboard was working properly when I was over on my Windows 7 machine.</description><link>http://paigecsharp.blogspot.com/2011/04/synergy-142-with-mac-as-server-and.html</link><author>noreply@blogger.com (Paige Cook)</author><thr:total>2</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1655071323937460588.post-6251839737480611847</guid><pubDate>Wed, 30 Mar 2011 02:01:00 +0000</pubDate><atom:updated>2011-03-29T22:01:22.349-04:00</atom:updated><title>Entity Framework 4.1 Entry Extensions</title><description>I have been working with the Microsoft Entity Framework version 4.1 aka &quot;Code First&quot; for about the last 3 weeks and have been really enjoying the ease and flexibility of setting things up and getting my CRUD operation working so smoothly. However, I had the need to create modify some entities in my database and was starting down the path of passing in the new entity, then querying the context for the old entity and finally setting the values of the old entity to those of the new entity. This worked for a little while, when I only had simple entities. However, my entities started getting more complex and I found myself adding more properties and always forgetting to update the modify operation.&lt;br /&gt;
&lt;br /&gt;
&lt;script src=&quot;https://gist.github.com/893718.js?file=Entity.cs&quot;&gt;&lt;/script&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;script src=&quot;https://gist.github.com/893718.js?file=ModifyEntity.cs&quot;&gt;&lt;/script&gt;&lt;br /&gt;
&lt;br /&gt;
So I started doing some research and found that I could use the Attach method on the DbSet to add the modified entity. However, this left the entity in the UnChanged state and that did not really do me any good. So with a little more research I found this &lt;a href=&quot;http://thedatafarm.com/blog/data-access/round-tripping-a-timestamp-field-with-ef4-1-code-first-and-mvc-3/&quot;&gt;Blog Post by Julie Lerman about Round Tripping a Timestamp Field in EF 4.1 with MVC 3&lt;/a&gt; that discusses the DbContext.Entry method and how I can set the State as I attach the entity.&lt;br /&gt;
&lt;br /&gt;
&lt;script src=&quot;https://gist.github.com/893718.js?file=EntryState.cs&quot;&gt;&lt;/script&gt;&lt;br /&gt;
&lt;br /&gt;
I had also in my secondary research found this post about creating extensions for the ObjectContext in the regular Entity Framework and this led to the creation of my own Extensions for the DbContext object as seen below...&lt;br /&gt;
&lt;br /&gt;
&lt;script src=&quot;https://gist.github.com/893718.js?file=DbContextExtensions.cs&quot;&gt;&lt;/script&gt;&lt;br /&gt;
&lt;br /&gt;
I now use these extension methods as shown below. &lt;br /&gt;
&lt;br /&gt;
&lt;script src=&quot;https://gist.github.com/893718.js?file=UsingExtension.cs&quot;&gt;&lt;/script&gt;</description><link>http://paigecsharp.blogspot.com/2011/03/entity-framework-41-entry-extensions.html</link><author>noreply@blogger.com (Paige Cook)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1655071323937460588.post-7428518849706471553</guid><pubDate>Tue, 22 Mar 2011 01:53:00 +0000</pubDate><atom:updated>2011-03-21T21:55:42.156-04:00</atom:updated><title>Good Drupal Books</title><description>Had the following Drupal books recommended today...&lt;br /&gt;
&lt;br /&gt;
&lt;iframe align=&quot;left&quot; frameborder=&quot;0&quot; marginheight=&quot;0&quot; marginwidth=&quot;0&quot; scrolling=&quot;no&quot; src=&quot;http://rcm.amazon.com/e/cm?t=pacbl-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=1430209895&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr&quot; style=&quot;align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;&quot;&gt;&lt;/iframe&gt;&lt;iframe align=&quot;left&quot; frameborder=&quot;0&quot; marginheight=&quot;0&quot; marginwidth=&quot;0&quot; scrolling=&quot;no&quot; src=&quot;http://rcm.amazon.com/e/cm?t=pacbl-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=0596515804&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr&quot; style=&quot;align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;&quot;&gt;&lt;/iframe&gt;&lt;iframe align=&quot;left&quot; frameborder=&quot;0&quot; marginheight=&quot;0&quot; marginwidth=&quot;0&quot; scrolling=&quot;no&quot; src=&quot;http://rcm.amazon.com/e/cm?t=pacbl-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=1847194443&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr&quot; style=&quot;align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;&quot;&gt;&lt;/iframe&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I have read Pro Drupal Development and it was an excellent book that helped me get up to speed quickly on developing modules for Drupal. I would highly recommend this book. I have not read the others, but plan on checking them out soon.</description><link>http://paigecsharp.blogspot.com/2011/03/good-drupal-books.html</link><author>noreply@blogger.com (Paige Cook)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1655071323937460588.post-9120462029328284636</guid><pubDate>Tue, 22 Mar 2011 01:47:00 +0000</pubDate><atom:updated>2011-03-21T21:47:50.165-04:00</atom:updated><title>Drupal, MAMP &amp; Drush</title><description>I am attending a &lt;a href=&quot;http://lullabot.com/&quot;&gt;Lullabot.com&lt;/a&gt; Drupal API &amp;amp;Module Development course at work this week. Learning a lot of great thoings so far. I worked on a Drupal project last year and created a custom module, but what I have learned so far in one day, could have probably saved me a close to a week as I was trying to figure it out on my own.&lt;br /&gt;
&lt;br /&gt;
At the end of class today, the instructors were going over some tips for Drupal developers and showed off the awesome &lt;a href=&quot;http://drush.ws/&quot;&gt;Drush, Drupal Shell&lt;/a&gt;. It is amazing what this tool can do, and being able to have the power of the command line to very nice. However, since I am running Drupal on &lt;a href=&quot;http://www.mamp.info/en/index.html&quot;&gt;MAMP&lt;/a&gt;, I was getting an error about not having the correct amount of RAM configured. However, I found this &quot;&lt;a href=&quot;http://drupal.org/node/601604&quot;&gt;getting drush to work on MAMP setup&lt;/a&gt;&quot; article that had the key that worked for me. Create a .bash_profile file and adding an alias:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
alias drush=&#39;/Applications/MAMP/bin/php5/bin/php /usr/bin/drush/drush.php&#39;&lt;br /&gt;
export COLUMNS</description><link>http://paigecsharp.blogspot.com/2011/03/drupal-mamp-drush.html</link><author>noreply@blogger.com (Paige Cook)</author><thr:total>3</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1655071323937460588.post-4470728964422172694</guid><pubDate>Fri, 18 Mar 2011 15:05:00 +0000</pubDate><atom:updated>2011-03-18T11:27:02.709-04:00</atom:updated><title>ASP.NET MVC &amp; MvcBuildViews set to true causes Build Error</title><description>I recently set the &lt;mvcbuildviews&gt; property in my ASP.NET MVC web application for the Release mode as recommended by K. Scott Allen in &lt;a href=&quot;http://odetocode.com/Blogs/scott/archive/2011/02/16/notes-on-building-razor-views.aspx&quot;&gt;Notes on Building Razor Views&lt;/a&gt;. This was working fine for a few days. Then yesterday, I started getting this error every time I would try a Release build.&lt;/mvcbuildviews&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Lucida Sans Unicode&#39;, &#39;Lucida Grande&#39;, &#39;Bitstream Vera Sans&#39;, &#39;Trebuchet MS&#39;, Geneva, Arial, sans-serif; font-size: 14px; line-height: 22px;&quot;&gt;&lt;b&gt;It is an error to use a section registered as allowDefinition=&#39;MachineToApplication&#39; beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
I went back to the comments from the blog post and &lt;a href=&quot;http://it%20is%20an%20error%20to%20use%20a%20section%20registered%20as%20allowdefinition%3D%27machinetoapplication%27%20beyond%20application%20level.%20this%20error%20can%20be%20caused%20by%20a%20virtual%20directory%20not%20being%20configured%20as%20an%20application%20in%20iis.%22/&quot;&gt;found this one&lt;/a&gt;, where someone else was having the same issue and they solved the issue by deleting the obj\&lt;build configuraton=&quot;&quot;&gt; folder, as recommended by the StackOverflow &lt;a href=&quot;http://stackoverflow.com/questions/4725387/mvcbuildviews-not-working-correctly&quot;&gt;MVC BuildViews not working correctly&lt;/a&gt;&amp;nbsp;question. I tried this and unfortunately it did not resolve my issue. Another answer further down suggested changing the PhysicalPath value for the AspNetCompiler value in the BuildViews task. I tried the recommended path:&lt;/build&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;script src=&quot;https://gist.github.com/876258.js?file=MvcBuildViews.xml&quot;&gt;&lt;/script&gt;&lt;br /&gt;
&lt;br /&gt;
That also did not work for me, so I followed a link to the use of &lt;a href=&quot;http://blogs.msdn.com/b/webdevtools/archive/2010/05/14/the-aspnet-compiler-build-task-in-visual-studio-2010-asp-net-mvc-2-projects.aspx&quot;&gt;Web Deployment Projects with ASP.NET MVC&lt;/a&gt; and noticed that they were using the following PhysicalPath setting.&lt;br /&gt;
&lt;br /&gt;
&lt;script src=&quot;https://gist.github.com/876258.js?file=DidNotWork.xml&quot;&gt;&lt;/script&gt;&lt;br /&gt;
&lt;br /&gt;
I changed my setting to this value, $(ProjectDir)\..\Web created this directory and now things are working properly again.</description><link>http://paigecsharp.blogspot.com/2011/03/aspnet-mvc-mvcbuildviews-set-to-true.html</link><author>noreply@blogger.com (Paige Cook)</author><thr:total>1</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1655071323937460588.post-2968211519129049619</guid><pubDate>Mon, 07 Mar 2011 15:20:00 +0000</pubDate><atom:updated>2011-03-07T10:22:31.541-05:00</atom:updated><title>Flush DNS on a Mac</title><description>So there were some network changes over the weekend at work and I needed to flush my DNS entries, so I did a quick Google search and found this great r&lt;a href=&quot;http://www.tech-faq.com/how-to-flush-dns.html&quot;&gt;eference for flushing DNS on almost any system&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
Specifically for &amp;nbsp;Mac OSX Leopard you issue the following command:&lt;br /&gt;
&lt;br /&gt;
dscacheutil -flushcache</description><link>http://paigecsharp.blogspot.com/2011/03/flush-dns-on-mac.html</link><author>noreply@blogger.com (Paige Cook)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1655071323937460588.post-5395689928664121187</guid><pubDate>Mon, 31 Jan 2011 17:57:00 +0000</pubDate><atom:updated>2012-01-25T09:43:44.484-05:00</atom:updated><title>Verify Url Exists</title><description>I recently was working on a web site that displayed a lot of images. The image details are stored separately from the images, so it is possible that when searching images to be displayed, that the actual image no longer exists. So I needed some code to validate that the image was actually present. The web site is an ASP.NET application and searched on StackOverflow and found some really good suggestions on how to do this with C#&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;http://stackoverflow.com/questions/4611801/i-want-to-check-whether-the-file-in-a-url-entered-exists-or-not-using-net&quot;&gt;I want to check whether the file in an url entered exists or not in .net&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://stackoverflow.com/questions/1639878/how-can-i-check-if-an-image-exists-at-http-someurl-myimage-jpg-in-c-asp-net&quot;&gt;How can I check if an Image exists at http://someurl/myimage.jpg in C#/ASP.NET&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;div&gt;So I took the best of both of these posts and created the following helper method.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;script src=&quot;https://gist.github.com/804152.js?file=UrlExists.cs&quot;&gt;&lt;/script&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;Please feel free to modify this if you find any issues or problems with.&amp;nbsp;&lt;/div&gt;</description><link>http://paigecsharp.blogspot.com/2011/01/verify-url-exists.html</link><author>noreply@blogger.com (Paige Cook)</author><thr:total>4</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1655071323937460588.post-8012341193978330198</guid><pubDate>Tue, 25 Jan 2011 13:11:00 +0000</pubDate><atom:updated>2011-01-25T08:11:58.509-05:00</atom:updated><title>Stack Overflow Questions in eBook Format</title><description>Yesterday, I saw a tweet by &lt;a href=&quot;http://twitter.com/spolsky&quot;&gt;Joel Spolsky&lt;/a&gt;&amp;nbsp;that contained a link to &lt;a href=&quot;http://hewgill.com/~greg/stackoverflow/ebooks/&quot;&gt;StackOverflow questions in &amp;nbsp;eBook format&lt;/a&gt;. After checking out the list of topics that had been compiled and selecting the ASP.NET topic. It only took a little fiddling with how to get these into my Kindle Reader App for Mac and Android and I now have a very nice reference for some great questions that have been asked on &lt;a href=&quot;http://stackoverflow.com/&quot;&gt;StackOverflow&lt;/a&gt;&amp;nbsp;over the past few years. &amp;nbsp;Please go check them out, as they are a great reference for 50 different topics. According to &lt;a href=&quot;http://ghewgill.livejournal.com/145305.html?view=682905#t682905&quot;&gt;Greg Hegwill&#39;s Live Journal Entry&lt;/a&gt; about the process he uses, it takes a while to generate all of these ebooks. If you find them useful, please be sure to let Greg know and show him some&amp;nbsp;appreciation.</description><link>http://paigecsharp.blogspot.com/2011/01/stack-overflow-questions-in-ebook.html</link><author>noreply@blogger.com (Paige Cook)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1655071323937460588.post-2605063434367270388</guid><pubDate>Fri, 10 Dec 2010 18:52:00 +0000</pubDate><atom:updated>2010-12-10T13:52:00.607-05:00</atom:updated><title>ASP.NET Impersonation and &quot;Could Not Load File or Assembly&quot; Error</title><description>When setting up an ASP.NET site on a server if you are using impersonation on the web site, typically set via the &lt;impersonation&gt; setting, you need to ensure that the user account being impersonated has access to the server. Typically this means you need to add that user account to the Users or Administrators group on the server.&amp;nbsp;&lt;/impersonation&gt;&lt;br /&gt;
&lt;br /&gt;
If you do have the&amp;nbsp;appropriate&amp;nbsp;permissions granted to the impersonating user, you will most likely receive an error message similar to &quot;Could not load &lt;name here=&quot;&quot;&gt; file or assembly or one of its dependencies. Access is denied&quot;. This is because the account does not have access to write to the c:\Windows\Microsoft.Net\Framework\&lt;version&gt;\Temporary ASP.NET Files&quot; directory.&lt;/version&gt;&lt;/name&gt;&lt;br /&gt;
&lt;br /&gt;
I have run into this issue numerous times and keep forgetting how to fix, so I finally decided to post it here, in hopes that I will find it the next time and hoepfully help someone else out as well.</description><link>http://paigecsharp.blogspot.com/2010/12/aspnet-impersonation-and-could-not-load.html</link><author>noreply@blogger.com (Paige Cook)</author><thr:total>1</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1655071323937460588.post-4745356791059015383</guid><pubDate>Thu, 09 Dec 2010 13:01:00 +0000</pubDate><atom:updated>2010-12-10T11:25:12.971-05:00</atom:updated><title>Improving Your Brain Power</title><description>Last year my kids received a Nintendo DS for Christmas and my wife purchased &lt;a href=&quot;http://www.amazon.com/gp/product/B000EGELP0?ie=UTF8&amp;amp;tag=pacbl-20&amp;amp;linkCode=as2&amp;amp;camp=1789&amp;amp;creative=9325&amp;amp;creativeASIN=B000EGELP0&quot;&gt;Brain Age: Train Your Brain in Minutes a Day!&lt;/a&gt;&lt;img src=&quot;http://www.assoc-amazon.com/e/ir?t=pacbl-20&amp;amp;l=as2&amp;amp;o=1&amp;amp;a=B000EGELP0&quot; width=&quot;1&quot; height=&quot;1&quot; border=&quot;0&quot; alt=&quot;&quot; style=&quot;border:none !important; margin:0px !important;&quot; /&gt; We both really enjoyed the challenge and the kids were actually pretty good at it too. The other day I stumbled upon a website that provides similar (and probably better) brain training. The site is &lt;a href=&quot;http://lumosity.com&quot;&gt;Lumosity&lt;/a&gt; and it is a great collection of brain training and grain games that can lead to:&lt;div&gt;&lt;div class=&quot;widget-content&quot;&gt; &lt;ul&gt; &lt;li&gt;Clearer and quicker thinking&lt;/li&gt; &lt;li&gt;Improved memory for names, numbers, directions, etc.&lt;/li&gt; &lt;li&gt;Increased alertness and awareness&lt;/li&gt; &lt;li&gt;Elevated mood&lt;/li&gt; &lt;li&gt;Better concentration at work or while driving&lt;/li&gt; &lt;/ul&gt;&lt;div&gt;Right now they are offering a free 7 day trial of their subscription service. I highly recommend checking it out.&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</description><link>http://paigecsharp.blogspot.com/2010/12/improving-your-brain-power.html</link><author>noreply@blogger.com (Paige Cook)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1655071323937460588.post-542614181529920407</guid><pubDate>Tue, 07 Dec 2010 19:58:00 +0000</pubDate><atom:updated>2010-12-12T21:32:58.823-05:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Code</category><title>VB.NET Sort Comparer</title><description>I found myself needing to sort Generic List of custom objects, in this case a list of the last seen users on a website. I wanted to sort the list by Date Last Seen Descending. I am primarily a C# developer, so I knew how to do this with a Delegate method. But, I am using an older version of VB and Delegates are not available. So I headed over to StackOverflow and found this great question, &lt;a href=&quot;http://www.stackoverflow.com/questions/438715/how-to-sort-a-system-collections-generic-list-in-vb-net&quot;&gt;How to Sort A System.Collection.Generic.List in VB.NET&lt;/a&gt;. After looking at this article I created the following code:&lt;br /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;public class UserLastSeen&lt;/div&gt;&lt;div&gt;{&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;public int Id { get; set; }&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;public string Name { get; set; }&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;public DateTime LastSeen { get; set;}&lt;/div&gt;&lt;div&gt;}&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;public class UserLastSeenSorter&lt;/div&gt;&lt;div&gt;{&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;public void GetSortedList()&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;{&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;List(Of UserLastSeen) userList = GetUserList()&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;userList.Sort(AddressOf UserLastSeenDescendingComparer)&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;p&lt;/span&gt;rivate Function UserLastSeenDescendingComparer(ByVal user1 As UserLastSeen, _&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;ByVal user2 as UserLastSeen) As Integer&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;{&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;Return user2.LastSeen.CompareTo(user1.LastSeen)&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;/div&gt;&lt;div&gt;}&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;This worked great and was very easy.&lt;/div&gt;</description><link>http://paigecsharp.blogspot.com/2010/12/vbnet-sort-comparer.html</link><author>noreply@blogger.com (Paige Cook)</author><thr:total>0</thr:total></item></channel></rss>