<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/" 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>Mon, 13 Feb 2012 08:48:26 +0000</lastBuildDate><category>Code</category><category>ASP.NET AJAX</category><category>Helpers</category><category>Technologies</category><category>Git</category><category>Search</category><category>Agile</category><category>programming personality</category><title>Paige C#</title><description /><link>http://paigecsharp.blogspot.com/</link><managingEditor>noreply@blogger.com (Paige Cook)</managingEditor><generator>Blogger</generator><openSearch:totalResults>87</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/PaigeCSharp" /><feedburner:info xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" uri="paigecsharp" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><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="http://fooberry.com/2008/10/24/replacing-tfs-diff-tool/"&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="http://www.sourcegear.com/diffmerge/"&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.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1655071323937460588-8839041137418986454?l=paigecsharp.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/EcDvqsNdrOLovpp3sEsqhdpZq_Y/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/EcDvqsNdrOLovpp3sEsqhdpZq_Y/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/EcDvqsNdrOLovpp3sEsqhdpZq_Y/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/EcDvqsNdrOLovpp3sEsqhdpZq_Y/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;</description><link>http://paigecsharp.blogspot.com/2012/01/tfs-compare-tool.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-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="http://nuget.org"&gt;NuGet&lt;/a&gt; (a great tool by the way, you should get it if you don'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="http://google.com/reader"&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.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1655071323937460588-3283402748378388161?l=paigecsharp.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/MLhdHTsBb5lmYVZk8SAoW3qzc7s/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/MLhdHTsBb5lmYVZk8SAoW3qzc7s/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/MLhdHTsBb5lmYVZk8SAoW3qzc7s/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/MLhdHTsBb5lmYVZk8SAoW3qzc7s/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;</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="https://gist.github.com/1024746.js?file=.gitignore"&gt;&lt;/script&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1655071323937460588-3281940512007344129?l=paigecsharp.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/c-wSCvHu4umVBElzSIMruQkN1Y0/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/c-wSCvHu4umVBElzSIMruQkN1Y0/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/c-wSCvHu4umVBElzSIMruQkN1Y0/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/c-wSCvHu4umVBElzSIMruQkN1Y0/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&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="http://knockoutjs.com"&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="https://gist.github.com/1000421.js?file=Person.cs"&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;"A circular reference was detected while serializing and object of type Person"&lt;/b&gt;. I did a little research on this issue and found a good blog post by Rick Strahl on &lt;a href="http://www.west-wind.com/weblog/posts/2007/Sep/02/LINQ-to-SQL-and-Serialization"&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.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1655071323937460588-2188063662573043516?l=paigecsharp.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/SLgApDbz3l-6UN33lzIR2LsHzv8/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/SLgApDbz3l-6UN33lzIR2LsHzv8/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/SLgApDbz3l-6UN33lzIR2LsHzv8/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/SLgApDbz3l-6UN33lzIR2LsHzv8/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;</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="http://synergy-foss.org/"&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="http://www.dusanvuckovic.com/tutorials-2/interoperability/multiple-computers-with-one-keyboard-and-mouse-synergy/"&gt;installation guide&lt;/a&gt; to get everything setup. Note that I also am using &lt;a href="http://www.volker-lanz.de/software/qsynergy"&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="http://synergy-foss.org/pm/issues/57"&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="http://synergy-foss.org/pm/issues/57#note-82"&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.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1655071323937460588-2988305102764975025?l=paigecsharp.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/rbLwhZUFoLhlvydZHT5dguJjKj0/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/rbLwhZUFoLhlvydZHT5dguJjKj0/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/rbLwhZUFoLhlvydZHT5dguJjKj0/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/rbLwhZUFoLhlvydZHT5dguJjKj0/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;</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 "Code First" 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="https://gist.github.com/893718.js?file=Entity.cs"&gt;&lt;/script&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;script src="https://gist.github.com/893718.js?file=ModifyEntity.cs"&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="http://thedatafarm.com/blog/data-access/round-tripping-a-timestamp-field-with-ef4-1-code-first-and-mvc-3/"&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="https://gist.github.com/893718.js?file=EntryState.cs"&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="https://gist.github.com/893718.js?file=DbContextExtensions.cs"&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="https://gist.github.com/893718.js?file=UsingExtension.cs"&gt;&lt;/script&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1655071323937460588-6251839737480611847?l=paigecsharp.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/uYQW01BHQjz8uwiRukD3FckKFVY/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/uYQW01BHQjz8uwiRukD3FckKFVY/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/uYQW01BHQjz8uwiRukD3FckKFVY/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/uYQW01BHQjz8uwiRukD3FckKFVY/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&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="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="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" style="align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="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" style="align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="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" style="align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&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.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1655071323937460588-7428518849706471553?l=paigecsharp.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/zj8HjMRDgLruxyBj1Xr3HwYk_0k/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/zj8HjMRDgLruxyBj1Xr3HwYk_0k/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/zj8HjMRDgLruxyBj1Xr3HwYk_0k/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/zj8HjMRDgLruxyBj1Xr3HwYk_0k/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;</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="http://lullabot.com/"&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="http://drush.ws/"&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="http://www.mamp.info/en/index.html"&gt;MAMP&lt;/a&gt;, I was getting an error about not having the correct amount of RAM configured. However, I found this "&lt;a href="http://drupal.org/node/601604"&gt;getting drush to work on MAMP setup&lt;/a&gt;" 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='/Applications/MAMP/bin/php5/bin/php /usr/bin/drush/drush.php'&lt;br /&gt;
export COLUMNS&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1655071323937460588-9120462029328284636?l=paigecsharp.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/_Da4hz-adxevgNY9TDQ8BB9HSXs/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/_Da4hz-adxevgNY9TDQ8BB9HSXs/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/_Da4hz-adxevgNY9TDQ8BB9HSXs/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/_Da4hz-adxevgNY9TDQ8BB9HSXs/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;</description><link>http://paigecsharp.blogspot.com/2011/03/drupal-mamp-drush.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-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="http://odetocode.com/Blogs/scott/archive/2011/02/16/notes-on-building-razor-views.aspx"&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="Apple-style-span" style="font-family: 'Lucida Sans Unicode', 'Lucida Grande', 'Bitstream Vera Sans', 'Trebuchet MS', Geneva, Arial, sans-serif; font-size: 14px; line-height: 22px;"&gt;&lt;b&gt;It is an error to use a section registered as allowDefinition='MachineToApplication' 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="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/"&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=""&gt; folder, as recommended by the StackOverflow &lt;a href="http://stackoverflow.com/questions/4725387/mvcbuildviews-not-working-correctly"&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="https://gist.github.com/876258.js?file=MvcBuildViews.xml"&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="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"&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="https://gist.github.com/876258.js?file=DidNotWork.xml"&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.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1655071323937460588-4470728964422172694?l=paigecsharp.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/85ucHLT9JSGUF7otcrHEa5r-qKA/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/85ucHLT9JSGUF7otcrHEa5r-qKA/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/85ucHLT9JSGUF7otcrHEa5r-qKA/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/85ucHLT9JSGUF7otcrHEa5r-qKA/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;</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="http://www.tech-faq.com/how-to-flush-dns.html"&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&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1655071323937460588-2968211519129049619?l=paigecsharp.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/0pbYXL4hqOoXfVWbFtv5KW1cGEc/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/0pbYXL4hqOoXfVWbFtv5KW1cGEc/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/0pbYXL4hqOoXfVWbFtv5KW1cGEc/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/0pbYXL4hqOoXfVWbFtv5KW1cGEc/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;</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="http://stackoverflow.com/questions/4611801/i-want-to-check-whether-the-file-in-a-url-entered-exists-or-not-using-net"&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="http://stackoverflow.com/questions/1639878/how-can-i-check-if-an-image-exists-at-http-someurl-myimage-jpg-in-c-asp-net"&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="https://gist.github.com/804152.js?file=UrlExists.cs"&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;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1655071323937460588-5395689928664121187?l=paigecsharp.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/turX4kx5Er8nqLOLXUhS0p25zqQ/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/turX4kx5Er8nqLOLXUhS0p25zqQ/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/turX4kx5Er8nqLOLXUhS0p25zqQ/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/turX4kx5Er8nqLOLXUhS0p25zqQ/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;</description><link>http://paigecsharp.blogspot.com/2011/01/verify-url-exists.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-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="http://twitter.com/spolsky"&gt;Joel Spolsky&lt;/a&gt;&amp;nbsp;that contained a link to &lt;a href="http://hewgill.com/~greg/stackoverflow/ebooks/"&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="http://stackoverflow.com/"&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="http://ghewgill.livejournal.com/145305.html?view=682905#t682905"&gt;Greg Hegwill'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.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1655071323937460588-8012341193978330198?l=paigecsharp.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/chRkwtFTtzj9eY6tRNQpueqFjUA/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/chRkwtFTtzj9eY6tRNQpueqFjUA/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/chRkwtFTtzj9eY6tRNQpueqFjUA/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/chRkwtFTtzj9eY6tRNQpueqFjUA/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;</description><link>http://paigecsharp.blogspot.com/2011/01/stack-overflow-questions-in-ebook.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-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 "Could Not Load File or Assembly" 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 "Could not load &lt;name here=""&gt; file or assembly or one of its dependencies. Access is denied". 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" 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.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1655071323937460588-2605063434367270388?l=paigecsharp.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/bUBCea3Cm9QA3yO65nPF5MVOe_k/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/bUBCea3Cm9QA3yO65nPF5MVOe_k/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/bUBCea3Cm9QA3yO65nPF5MVOe_k/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/bUBCea3Cm9QA3yO65nPF5MVOe_k/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;</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>0</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="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"&gt;Brain Age: Train Your Brain in Minutes a Day!&lt;/a&gt;&lt;img src="http://www.assoc-amazon.com/e/ir?t=pacbl-20&amp;amp;l=as2&amp;amp;o=1&amp;amp;a=B000EGELP0" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /&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="http://lumosity.com"&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="widget-content"&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;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1655071323937460588-4745356791059015383?l=paigecsharp.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/fhJN6oaurp2dybAehw7zMB73qrA/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/fhJN6oaurp2dybAehw7zMB73qrA/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/fhJN6oaurp2dybAehw7zMB73qrA/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/fhJN6oaurp2dybAehw7zMB73qrA/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&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="http://www.stackoverflow.com/questions/438715/how-to-sort-a-system-collections-generic-list-in-vb-net"&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="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;public int Id { get; set; }&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;public string Name { get; set; }&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&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="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;public void GetSortedList()&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;{&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;  &lt;/span&gt;List(Of UserLastSeen) userList = GetUserList()&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;  &lt;/span&gt;userList.Sort(AddressOf UserLastSeenDescendingComparer)&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;}&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;p&lt;/span&gt;rivate Function UserLastSeenDescendingComparer(ByVal user1 As UserLastSeen, _&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;    &lt;/span&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;ByVal user2 as UserLastSeen) As Integer&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;{&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;  &lt;/span&gt;Return user2.LastSeen.CompareTo(user1.LastSeen)&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&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;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1655071323937460588-542614181529920407?l=paigecsharp.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/v-4bnLg2fK8U93BJIBO9FcdQi1k/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/v-4bnLg2fK8U93BJIBO9FcdQi1k/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/v-4bnLg2fK8U93BJIBO9FcdQi1k/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/v-4bnLg2fK8U93BJIBO9FcdQi1k/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&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><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1655071323937460588.post-190387983625773826</guid><pubDate>Wed, 17 Nov 2010 20:30:00 +0000</pubDate><atom:updated>2010-11-17T15:35:15.328-05:00</atom:updated><title>Issues with Windows Update KB2160841</title><description>If you experience issues with installing Microsoft Update&lt;a href="http://support.microsoft.com/kb/2160841"&gt; KB2160841&lt;/a&gt; on your machine, please try following the steps in MS Answers forum post - &lt;a href="http://social.answers.microsoft.com/Forums/en-AU/vistawu/thread/f1dd866f-85b7-4ae6-bc32-1c488c19742a"&gt;Can't Install KB2160841&lt;/a&gt; to Repair the .NET Framework Client Profile. &lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;I was having this issue on multiple Windows 2008 servers and repairing the .NET Framework 4 Client install worked every time.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1655071323937460588-190387983625773826?l=paigecsharp.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/q5s2Mi30HO_45ZhV0-tcP21bqHQ/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/q5s2Mi30HO_45ZhV0-tcP21bqHQ/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/q5s2Mi30HO_45ZhV0-tcP21bqHQ/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/q5s2Mi30HO_45ZhV0-tcP21bqHQ/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;</description><link>http://paigecsharp.blogspot.com/2010/11/issues-with-windows-update-kb2160841.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-7073744608104792990</guid><pubDate>Wed, 17 Nov 2010 18:31:00 +0000</pubDate><atom:updated>2010-11-17T13:36:57.847-05:00</atom:updated><title>Good Advice for Writing Well</title><description>Saw a link to &lt;a href="http://courses.cs.vt.edu/~cs3604/support/Writing/writing.caveats.html"&gt;How to Write Good&lt;/a&gt; come across on Twitter the other day. These are really good tips and advice to follow, in my opinion. Considering that today almost everyone writes email or text messages every day, you should read these rules and learn to follow them. I know that I am going to attempt to do that, starting now.&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1655071323937460588-7073744608104792990?l=paigecsharp.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/WcSPESRAryiY8qB8HLbXHVnOpjM/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/WcSPESRAryiY8qB8HLbXHVnOpjM/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/WcSPESRAryiY8qB8HLbXHVnOpjM/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/WcSPESRAryiY8qB8HLbXHVnOpjM/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;</description><link>http://paigecsharp.blogspot.com/2010/11/good-advice-for-writing-well.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-1950575881447456236</guid><pubDate>Tue, 09 Nov 2010 20:44:00 +0000</pubDate><atom:updated>2010-11-09T15:44:54.230-05:00</atom:updated><title>Too Many Encodings</title><description>&lt;p&gt;Ran into an issue today where we were running too many encodings (url and html) on a string before I reached its final destination. This was causing some really weird behavior and was a little difficult to track down. But after some digging it was pretty clear to see what was happening…&lt;/p&gt; &lt;p&gt;Basically if you have a string like “Your $$$$$” that you wanted to search against. (In this case we want to keep the quotes as they are a search hint to find this exact phrase), you would want to url encode this to go across the wire to our REST based &lt;a href="http://lucene.apache.org/solr"&gt;Solr&lt;/a&gt; search server. &lt;/p&gt; &lt;p&gt;However, we were applying an errant Html Encoding against this string before sending it on to the Solr server via &lt;a href="http://code.google.com/p/solrnet/"&gt;SolrNet&lt;/a&gt; which was in turn performing the Url Encoding on the Html Encoded value. However, that really did not change the value.&lt;/p&gt; &lt;p&gt;Once I removed the extra Html Encoding things were back to working as expected and I learned a valuable lesson about encodings…&lt;/p&gt; &lt;p&gt;Here is an example:&lt;/p&gt; &lt;p&gt;String: “Your $$$$$”&lt;/p&gt; &lt;p&gt;Url Encoded: %22Your%2B%24%24%24%24%24%22&lt;/p&gt; &lt;p&gt;Html Encoded: %26quot%3BYour+%24%24%24%24%24%26quot%3B&lt;/p&gt; &lt;p&gt;While these look very similar they are no the same and managed to produce some very strange results for us as we ended performing searches on phrases like “quot” and “;”.&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1655071323937460588-1950575881447456236?l=paigecsharp.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/VE40WxSUgA8PCQA2MD53fYOXt0E/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/VE40WxSUgA8PCQA2MD53fYOXt0E/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/VE40WxSUgA8PCQA2MD53fYOXt0E/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/VE40WxSUgA8PCQA2MD53fYOXt0E/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;</description><link>http://paigecsharp.blogspot.com/2010/11/too-many-encodings.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-515272150535980909</guid><pubDate>Fri, 10 Sep 2010 11:46:00 +0000</pubDate><atom:updated>2010-09-10T07:46:40.308-04:00</atom:updated><title>Debugging Drupal with Eclipse on Mac OS</title><description>&lt;p&gt;I have been developing with &lt;a href="http://drupal.org"&gt;Drupal&lt;/a&gt; for a while now, but had neglected to setup my Eclipse development environment for debugging my Drupal site. I am running &lt;a href="http://www.mamp.info/"&gt;MAMP&lt;/a&gt; 1.9 locally for my development, so I started following the instructions on the Drupal site for &lt;a href="http://drupal.org/node/157609"&gt;Configuring Eclipse for Remote Debugging with Zend&lt;/a&gt;. That got me part of the way there… but not fully there.&lt;/p&gt; &lt;p&gt;I ended up relying on the following articles and video to finally get it all working.&lt;/p&gt; &lt;ul&gt; &lt;li&gt;(Video) &lt;a href="http://blip.tv/file/3253369"&gt;Configuring Eclipse for Drupal Module Development and Debugging on the Mac OS&lt;/a&gt;&lt;/li&gt; &lt;li&gt;(Article) &lt;a href="http://echodittolabs.org/blog/2010/08/how-configure-eclipse-pdt-zend-server-debugger-mamp-drupal"&gt;How to Configure Eclipse PDT with Zend Server Debugger on MAMP for Drupal&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt; &lt;p&gt;The key takeaways for getting this working were to download the Eclipse PDT and watch out for the superfluous zend_extension setting in the php.ini file. &lt;/p&gt; &lt;p&gt;Now that I am able to debug my Drupal site, my module development just got a whole lot easier! &lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1655071323937460588-515272150535980909?l=paigecsharp.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/gfu5PwEXLSEmFwacRZc9wdOCSHc/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/gfu5PwEXLSEmFwacRZc9wdOCSHc/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/gfu5PwEXLSEmFwacRZc9wdOCSHc/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/gfu5PwEXLSEmFwacRZc9wdOCSHc/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;</description><link>http://paigecsharp.blogspot.com/2010/09/debugging-drupal-with-eclipse-on-mac-os.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-2297847694014864445</guid><pubDate>Fri, 06 Aug 2010 01:51:00 +0000</pubDate><atom:updated>2010-08-05T21:51:28.033-04:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Search</category><category domain="http://www.blogger.com/atom/ns#">Code</category><title>Solr DataImportHandler and OData Service Issue</title><description>&lt;p&gt;This week I was working on a proof of concept for indexing data from a SQL database with &lt;a href="http://lucene.apache.org/solr"&gt;Solr&lt;/a&gt;. I had done something similar with xml files using some .NET code to read the xml files into a document class that I then inserted into Solr using the excellent SolrNet library. However, for this, I wanted to try out the Solr DataImportHandler (DIH), since this was a pretty straight forward table to index mapping. So I read up on using the UrlDataSource Import Handler in Solr and set about creating my &lt;a href="http://www.odata.org/"&gt;OData Service&lt;/a&gt; to expose the data. I was able to create my OData service pretty quickly and then I setup the DIH following the steps at SolrWiki. However, when I attempted to call the OData Service from the DIH, it kept generating an error accessing the OData url. I was getting an HTTP 400 error. This was really strange, because I was able to access the OData Service without any issues from the browser. It was only when I use the DIH that I had this problem. With some help from another colleague, it was determined that the issue was in the http accept headers that were being sent by the DIH call to the OData service. The server was generating the error &lt;strong&gt;&lt;em&gt;“Media type requires a ‘/’ character”&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;The Accept Header being passed is:&lt;/p&gt;  &lt;p&gt;text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2&lt;/p&gt;  &lt;p&gt;The issue is last two media types “*; q=.2, */*; q=.2” - the OData services do not recognize the relative quality factor as found the Http Header Field Definitions in &lt;a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html"&gt;RFC 2616 – Section 14&lt;/a&gt;. I even tried connecting to the &lt;a href="http://services.odata.org/Northwind/Northwind.svc/"&gt;OData Northwind Sample Service&lt;/a&gt;, but had the same issue.&lt;/p&gt;  &lt;p&gt;So in order to work around this issue, I created the following HttpModule to workaround the issue by removing these two bad entries.&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;div style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px" id="scid:f32c3428-b7e9-4f15-a8ea-c502c7ff2e88:90b85ab7-934b-48d1-ac18-d4be1e6a151d" class="wlWriterEditableSmartContent"&gt;&lt;pre class="brush: c#;"&gt;using System;&lt;br /&gt;using System.Collections.Generic;&lt;br /&gt;using System.Web;&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;namespace SolrIISModules&lt;br /&gt;{&lt;br /&gt;    public class AcceptFilter : IHttpModule&lt;br /&gt;    {&lt;br /&gt;        private const string ACCEPTHEADER = "HTTP_ACCEPT";&lt;br /&gt;        private const string BADSOLRACCEPT = "*/*; q=.2";&lt;br /&gt;       &lt;br /&gt;        public void Init(HttpApplication context)&lt;br /&gt;        {&lt;br /&gt;            context.PreRequestHandlerExecute += context_PreRequestHandlerExecute;&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;        private static void context_PreRequestHandlerExecute(object sender, EventArgs e)&lt;br /&gt;        {&lt;br /&gt;            var application = sender as HttpApplication;&lt;br /&gt;            if (application == null) return;&lt;br /&gt;&lt;br /&gt;            var request = application.Context.Request;&lt;br /&gt;            if (string.IsNullOrEmpty(request[ACCEPTHEADER])) return;&lt;br /&gt;            var acceptValues = request[ACCEPTHEADER].Split(',');&lt;br /&gt;            var filteredValues = new List&amp;lt;string&amp;gt;();&lt;br /&gt;            foreach (var value in acceptValues)&lt;br /&gt;            {&lt;br /&gt;                if (!value.Contains("/")) continue;&lt;br /&gt;                if (IsBadSolrValue(value))&lt;br /&gt;                {&lt;br /&gt;                    //only add the */* back in, otherwise an http 415 error will be generated.&lt;br /&gt;                    filteredValues.Add("*/*");&lt;br /&gt;                    continue;&lt;br /&gt;                }&lt;br /&gt;                filteredValues.Add(value);                &lt;br /&gt;            }&lt;br /&gt;&lt;br /&gt;            application.Context.Request.Headers.Set("accept", String.Join(",", filteredValues.ToArray()));&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;        private static bool IsBadSolrValue(string acceptValue)&lt;br /&gt;        {&lt;br /&gt;            return string.Compare(acceptValue.Trim(), BADSOLRACCEPT, true) == 0;&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;        public void Dispose()&lt;br /&gt;        {           &lt;br /&gt;        }&lt;br /&gt;    }&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Now I just enable this module on my IIS website that is hosting the OData Service and I am able to get my DIH working as expected. I had tested this with an OData service hosted in both ASP.NET Webforms and ASP.NET MVC websites.&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1655071323937460588-2297847694014864445?l=paigecsharp.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/yisVTqQYxpJ6wIo7bkI65W_eK0Y/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/yisVTqQYxpJ6wIo7bkI65W_eK0Y/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/yisVTqQYxpJ6wIo7bkI65W_eK0Y/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/yisVTqQYxpJ6wIo7bkI65W_eK0Y/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;</description><link>http://paigecsharp.blogspot.com/2010/08/solr-dataimporthandler-and-odata.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-2413867674014757542</guid><pubDate>Tue, 16 Mar 2010 14:52:00 +0000</pubDate><atom:updated>2010-03-16T10:56:41.441-04:00</atom:updated><title>XML in Google Chrome</title><description>Have you ever tried to view an XML stream in Google Chrome and expected to see the nicely formatted XML document like you get in Internet Explorer... I know I sure did and was surprised when I did not see it. Do not despair, as there is a great Extension for Chrome - &lt;a href="https://chrome.google.com/extensions/detail/gbammbheopgpmaagmckhpjbfgdfkpadb?hl=en-https://chrome.google.com/extensions/detail/gbammbheopgpmaagmckhpjbfgdfkpadb?hl=en-us"&gt;XML Tree&lt;/a&gt; by Alan Stroop. This was a life saver, as I love to use Chrome and wanted the same experience. If you need/want to look at XML using Chrome, then I would recommend getting this Extension.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1655071323937460588-2413867674014757542?l=paigecsharp.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/uHk2nSYpGZncu2Tlsi6XNUEmaro/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/uHk2nSYpGZncu2Tlsi6XNUEmaro/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/uHk2nSYpGZncu2Tlsi6XNUEmaro/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/uHk2nSYpGZncu2Tlsi6XNUEmaro/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;</description><link>http://paigecsharp.blogspot.com/2010/03/xml-in-google-chrome.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-8636233437233706946</guid><pubDate>Fri, 12 Feb 2010 17:13:00 +0000</pubDate><atom:updated>2010-02-12T12:13:56.976-05:00</atom:updated><title>Disable Logging for Folders/Files in IIS 7</title><description>&lt;p&gt;Since turning off logging for IIS 7 folders or files is not as straight forward (or intuitive) as it is in IIS 6. I thought I would post the steps here. For IIS 6 you can follow the instructions in &lt;a href="http://support.microsoft.com/kb/324279"&gt;this MS Knowledge Base Article&lt;/a&gt;.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;&lt;u&gt;Disable IIS logging for a folder&lt;/u&gt;&lt;/strong&gt;&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;Open up IIS 7 Manager &lt;/li&gt;    &lt;li&gt;Expand the website in the left pane to see the folder structure.&lt;/li&gt;    &lt;li&gt;Click on the folder name to select it. &lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;a href="http://lh4.ggpht.com/_sHVsus0CQK4/S3WMTdxJuZI/AAAAAAAAAHg/deE65A9ueI0/s1600-h/image%5B2%5D.png"&gt;&lt;img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://lh3.ggpht.com/_sHVsus0CQK4/S3WMTprDZLI/AAAAAAAAAHk/K4BGdI8Rn9A/image_thumb.png?imgmax=800" width="131" height="244" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;Double click on the Logging entry in the folder home page. &lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;a href="http://lh4.ggpht.com/_sHVsus0CQK4/S3WMTxkT5zI/AAAAAAAAAHo/gqFODBAVoJg/s1600-h/image%5B16%5D.png"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://lh6.ggpht.com/_sHVsus0CQK4/S3WMUGFQRjI/AAAAAAAAAHs/K33DErRqu6I/image_thumb%5B8%5D.png?imgmax=800" width="496" height="291" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;Click the Disable link under Actions on the right pane. &lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;a href="http://lh5.ggpht.com/_sHVsus0CQK4/S3WMUdnmewI/AAAAAAAAAHw/wvRgXb47Ca8/s1600-h/image%5B15%5D.png"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://lh5.ggpht.com/_sHVsus0CQK4/S3WMUiIxRDI/AAAAAAAAAH0/qU9MEkytF7M/image_thumb%5B7%5D.png?imgmax=800" width="533" height="185" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;&lt;strong&gt;&lt;u&gt;Disable IIS Logging for a file&lt;/u&gt;&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt; The steps for a file are almost identical for an individual file. &lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;After you select the folder where the file resides, click the Content View at the bottom of the middle pane to see all the contents of the folder.&lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;a href="http://lh4.ggpht.com/_sHVsus0CQK4/S3WMUhvIBpI/AAAAAAAAAH4/o6-3rVGcjTM/s1600-h/image%5B20%5D.png"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://lh4.ggpht.com/_sHVsus0CQK4/S3WMU4jPlQI/AAAAAAAAAH8/taQZijFyopE/image_thumb%5B10%5D.png?imgmax=800" width="441" height="222" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;Select the file that you want, then click Switch to Features view under Actions on the right pane.&lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;a href="http://lh6.ggpht.com/_sHVsus0CQK4/S3WMU5_NzKI/AAAAAAAAAIA/KyPF4QIgE2U/s1600-h/image%5B24%5D.png"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://lh3.ggpht.com/_sHVsus0CQK4/S3WMVI2FpzI/AAAAAAAAAIE/rDjEECCdJ_c/image_thumb%5B12%5D.png?imgmax=800" width="345" height="263" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;Then follow same last two steps as above to turn off Logging for that file.&lt;/li&gt; &lt;/ul&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1655071323937460588-8636233437233706946?l=paigecsharp.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/slxVHwfsN_ybMxisSoA2x65GIQw/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/slxVHwfsN_ybMxisSoA2x65GIQw/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/slxVHwfsN_ybMxisSoA2x65GIQw/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/slxVHwfsN_ybMxisSoA2x65GIQw/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;</description><link>http://paigecsharp.blogspot.com/2010/02/disable-logging-for-foldersfiles-in-iis.html</link><author>noreply@blogger.com (Paige Cook)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://lh3.ggpht.com/_sHVsus0CQK4/S3WMTprDZLI/AAAAAAAAAHk/K4BGdI8Rn9A/s72-c/image_thumb.png?imgmax=800" height="72" width="72" /><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1655071323937460588.post-6960714421251763624</guid><pubDate>Fri, 12 Feb 2010 14:42:00 +0000</pubDate><atom:updated>2010-02-12T09:42:48.026-05:00</atom:updated><title>Local Version Control and Backup</title><description>&lt;p&gt;So I finally started using SVN to version control all of my local projects via &lt;a href="http://www.visualsvn.com/server/"&gt;VisualSVN&lt;/a&gt; and using the &lt;a href="http://ankhsvn.open.collab.net/"&gt;ankhSVN&lt;/a&gt; plug-in for Visual Studio. I have also setup my Repository directory to be in my local &lt;a href="http://dropbox.com/"&gt;Dropbox&lt;/a&gt; folder so that I get automatic backup. Here are some useful articles if you want to start doing this yourself. You might also want to install &lt;a href="http://tortoisesvn.tigris.org/"&gt;TortiseSVN&lt;/a&gt; so that you can manage other files outside of Visual Studio. &lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;&lt;a href="http://www.visualsvn.com/server/getting-started/"&gt;VisualSVN – Getting Started&lt;/a&gt;&lt;/li&gt;    &lt;li&gt;&lt;a href="http://labs.dropit.se/blogs/post/2009/01/14/Simple-source-control-with-Subversion-and-Dropbox.aspx"&gt;Using VisualSVN and Dropbox together&lt;/a&gt;&lt;/li&gt;    &lt;li&gt;&lt;a href="http://tortoisesvn.net/docs/nightly/TortoiseSVN_en/tsvn-repository.html#tsvn-repository-local-access"&gt;Setting up repositories in SVN.&lt;/a&gt; &lt;/li&gt;    &lt;li&gt;&lt;a href="http://mikeinmadison.wordpress.com/2008/01/10/getting-started-with-visualsvn/"&gt;How to structure web projects for proper inclusion in VisualSVN repositories.&lt;/a&gt; &lt;/li&gt; &lt;/ul&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1655071323937460588-6960714421251763624?l=paigecsharp.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/8cL-sunzF2hpGSUNNmyM_EsbjUE/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/8cL-sunzF2hpGSUNNmyM_EsbjUE/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/8cL-sunzF2hpGSUNNmyM_EsbjUE/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/8cL-sunzF2hpGSUNNmyM_EsbjUE/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;</description><link>http://paigecsharp.blogspot.com/2010/02/local-version-control-and-backup.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-8213753715814012049</guid><pubDate>Wed, 10 Feb 2010 16:56:00 +0000</pubDate><atom:updated>2010-02-10T11:59:10.493-05:00</atom:updated><title>Remote IIS 7 Admin stopped working after Installing .NET 4</title><description>&lt;p&gt;I ran into a situation the other day where I was unable to connect to a remotely administer an IIS 7 (Windows 2008) server after installing the .NET 4 Framework. After some checking the steps that I used to setup the server in this &lt;a href="http://www.trainsignaltraining.com/iis-7-remote-administration/2008-06-11/"&gt;blog post&lt;/a&gt;, I figured out that when .NET 4 installed it turned off IIS 7 Management Service and unchecked the Enable Remote Connections options on the service.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh3.ggpht.com/_sHVsus0CQK4/S3LlWGtM8CI/AAAAAAAAAHY/gij9HIxnrcw/s1600-h/image%5B4%5D.png"&gt;&lt;img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://lh4.ggpht.com/_sHVsus0CQK4/S3LlWcAEo1I/AAAAAAAAAHc/f-VA3Y40Cis/image_thumb%5B2%5D.png?imgmax=800" width="625" height="112" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Once I checked this option again and restarted the service, everything was working again. Strange that installing .NET 4 would have done that… oh well, now I know.&lt;/p&gt;  &lt;p&gt;Hope this helps someone else.&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1655071323937460588-8213753715814012049?l=paigecsharp.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/Vq8mKN2av7gmQd5hEbuJqH6rxB8/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/Vq8mKN2av7gmQd5hEbuJqH6rxB8/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/Vq8mKN2av7gmQd5hEbuJqH6rxB8/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/Vq8mKN2av7gmQd5hEbuJqH6rxB8/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;</description><link>http://paigecsharp.blogspot.com/2010/02/remote-iis-7-admin-stopped-working.html</link><author>noreply@blogger.com (Paige Cook)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://lh4.ggpht.com/_sHVsus0CQK4/S3LlWcAEo1I/AAAAAAAAAHc/f-VA3Y40Cis/s72-c/image_thumb%5B2%5D.png?imgmax=800" height="72" width="72" /><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1655071323937460588.post-2455571707067535646</guid><pubDate>Fri, 15 Jan 2010 13:25:00 +0000</pubDate><atom:updated>2010-01-15T08:25:47.332-05:00</atom:updated><title>jQuery 1.4</title><description>&lt;p&gt;The newest version, 1.4 of &lt;a href="http://jquery.com/"&gt;jQuery&lt;/a&gt; was released yesterday. You can download it and watch the Q&amp;amp;A about the release at the official homepage &lt;a href="http://jquery14.com/"&gt;jquery14.com&lt;/a&gt;. Also I found this great list of &lt;a href="http://net.tutsplus.com/tutorials/javascript-ajax/jquery-1-4-released-the-15-new-features-you-must-know/"&gt;the 15 new features you must know&lt;/a&gt;.&lt;/p&gt;  &lt;p&gt;Go check it out…&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1655071323937460588-2455571707067535646?l=paigecsharp.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/CuVNsglt7bGSYap5Scv_F81Pik0/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/CuVNsglt7bGSYap5Scv_F81Pik0/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/CuVNsglt7bGSYap5Scv_F81Pik0/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/CuVNsglt7bGSYap5Scv_F81Pik0/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;</description><link>http://paigecsharp.blogspot.com/2010/01/jquery-14.html</link><author>noreply@blogger.com (Paige Cook)</author><thr:total>0</thr:total></item></channel></rss>

